aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/auth.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/phpBB/includes/auth.php b/phpBB/includes/auth.php
index 692bfdc6f7..067ab93235 100644
--- a/phpBB/includes/auth.php
+++ b/phpBB/includes/auth.php
@@ -180,9 +180,16 @@ function auth($type, $forum_id, $userdata, $f_access = -1)
$num_u_access = $db->sql_numrows($au_result);
if($num_u_access)
{
- while($u_row = $db->sql_fetchrow($au_result))
+ if($forum_id != AUTH_LIST_ALL)
{
- $u_access[$u_row['forum_id']] = $u_row;
+ $u_access = $db->sql_fetchrowset($au_result);
+ }
+ else
+ {
+ while($u_row = $db->sql_fetchrow($au_result))
+ {
+ $u_access[$u_row['forum_id']] = $u_row;
+ }
}
}
}