aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-04-11 14:14:23 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-04-11 14:14:23 +0000
commitc1c3b9f9124b42dd37b5d1da582e23b927cbee44 (patch)
tree7ba6bd9dff5e1982e01a9e1e4062c0dd1c5e97b2 /phpBB/includes
parent5a13f125a61601f2e47b32a4d94ef9c1e0b9e3db (diff)
downloadforums-c1c3b9f9124b42dd37b5d1da582e23b927cbee44.tar
forums-c1c3b9f9124b42dd37b5d1da582e23b927cbee44.tar.gz
forums-c1c3b9f9124b42dd37b5d1da582e23b927cbee44.tar.bz2
forums-c1c3b9f9124b42dd37b5d1da582e23b927cbee44.tar.xz
forums-c1c3b9f9124b42dd37b5d1da582e23b927cbee44.zip
fixing two potential problems
- blank style - check for correct role assignment within auth.php (should not happen, but seems like some users are not able to persist from manually messing with the db) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8502 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/auth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/auth.php b/phpBB/includes/auth.php
index 8dd15fea64..d0b38b67a3 100644
--- a/phpBB/includes/auth.php
+++ b/phpBB/includes/auth.php
@@ -800,7 +800,7 @@ class auth
{
$this->_set_group_hold_ary($hold_ary[$row['forum_id']], $row['auth_option_id'], $row['auth_setting']);
}
- else
+ else if (!empty($this->role_cache[$row['auth_role_id']]))
{
foreach (unserialize($this->role_cache[$row['auth_role_id']]) as $option_id => $setting)
{