diff options
author | Henry Sudhof <kellanved@phpbb.com> | 2007-07-11 12:14:07 +0000 |
---|---|---|
committer | Henry Sudhof <kellanved@phpbb.com> | 2007-07-11 12:14:07 +0000 |
commit | 2b72a95734ed6f46d8cfccbbea01132b5de37994 (patch) | |
tree | 4d48cc194b687a9c18ccbead6aee7426f780e165 | |
parent | a694c17791eb0375bc9259397a68849a35145281 (diff) | |
download | forums-2b72a95734ed6f46d8cfccbbea01132b5de37994.tar forums-2b72a95734ed6f46d8cfccbbea01132b5de37994.tar.gz forums-2b72a95734ed6f46d8cfccbbea01132b5de37994.tar.bz2 forums-2b72a95734ed6f46d8cfccbbea01132b5de37994.tar.xz forums-2b72a95734ed6f46d8cfccbbea01132b5de37994.zip |
There might be no global permissions: #13249
git-svn-id: file:///svn/phpbb/trunk@7865 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/docs/CHANGELOG.html | 2 | ||||
-rw-r--r-- | phpBB/includes/acp/auth.php | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index 2c0bcc6f37..ca61379360 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -205,6 +205,8 @@ p a { <li>[Fix] Don't allow caching to occur in the update sequence (Bug #13207)</li> <li>[Fix] Enforce the max password length for automatically generated password created by the password sender (Bug #13181)</li> <li>[Fix] Handle phpinfo() when expose_php is false (Bug #12777)</li> + <li>[Fix] Allow managing of forum roles without global users (Bug #13249)</li> + </ul> diff --git a/phpBB/includes/acp/auth.php b/phpBB/includes/acp/auth.php index a7518a287c..b0409a2b28 100644 --- a/phpBB/includes/acp/auth.php +++ b/phpBB/includes/acp/auth.php @@ -591,13 +591,14 @@ class auth_admin extends auth ORDER BY left_id'; $result = $db->sql_query($sql); - $forum_names = array(0 => ''); + // If the role is used globally, then reflect that + $forum_names = (isset($hold_ary[0])) ? array(0 => '') : array(); while ($row = $db->sql_fetchrow($result)) { $forum_names[$row['forum_id']] = $row['forum_name']; } $db->sql_freeresult($result); - + foreach ($forum_names as $forum_id => $forum_name) { $auth_ary = $hold_ary[$forum_id]; |