diff options
Diffstat (limited to 'phpBB/includes/acp/auth.php')
-rw-r--r-- | phpBB/includes/acp/auth.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/acp/auth.php b/phpBB/includes/acp/auth.php index ebbb129994..2307d413fa 100644 --- a/phpBB/includes/acp/auth.php +++ b/phpBB/includes/acp/auth.php @@ -701,7 +701,7 @@ class auth_admin extends auth $id_field = $ug_type . '_id'; // Get any flags as required - list(, $flag) = each(array_keys($auth)); + $flag = key($auth); $flag = substr($flag, 0, strpos($flag, '_') + 1); // This ID (the any-flag) is set if one or more permissions are true... @@ -831,7 +831,7 @@ class auth_admin extends auth global $db; // Get any-flag as required - list(, $flag) = each(array_keys($auth)); + $flag = key($auth); $flag = substr($flag, 0, strpos($flag, '_') + 1); // Remove any-flag from auth ary |