diff --git a/webapp/classes/Privilege.php b/webapp/classes/Privilege.php index f368c8c..e08014a 100644 --- a/webapp/classes/Privilege.php +++ b/webapp/classes/Privilege.php @@ -49,8 +49,8 @@ class Privilege if ($row) { $nowtime = time(); $vip_info = json_decode($row['vip_info'], true); - foreach ($vip_info as $key => $carditem) { - if ($vip_info[$key]['expire'] == 0 || $vip_info[$key]['expire'] > $nowtime) { + foreach ($vip_info as $carditem) { + if ($carditem['expire'] == 0 || $carditem['expire'] > $nowtime) { $privilegecard_conf = metatable\getPrivilegeCardById($carditem['id']); if (!$privilegecard_conf) { $plus += $privilegecard_conf[$name];