From 7d6c996092ec92c1081f05626af0d284dc94bb8a Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 19 Jun 2001 00:44:44 +0000 Subject: [PATCH] And another fix, whos idea was it to do auth like this ... oh git-svn-id: file:///svn/phpbb/trunk@515 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/auth.php | 11 +++++++++-- 1 file 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; + } } } }