aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_zebra.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-11-10 14:18:54 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-11-10 14:18:54 +0000
commitd5df8a33a501b1ad3253eb613edc06b88c166c44 (patch)
tree96ea35c0ce7d84df5ab0039475dde0fc89f694e6 /phpBB/includes/ucp/ucp_zebra.php
parent4a05ef300b1add482bed6efe061d52ce765bad34 (diff)
downloadforums-d5df8a33a501b1ad3253eb613edc06b88c166c44.tar
forums-d5df8a33a501b1ad3253eb613edc06b88c166c44.tar.gz
forums-d5df8a33a501b1ad3253eb613edc06b88c166c44.tar.bz2
forums-d5df8a33a501b1ad3253eb613edc06b88c166c44.tar.xz
forums-d5df8a33a501b1ad3253eb613edc06b88c166c44.zip
Note that these changes are as yet untested
git-svn-id: file:///svn/phpbb/trunk@4657 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_zebra.php')
-rw-r--r--phpBB/includes/ucp/ucp_zebra.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/phpBB/includes/ucp/ucp_zebra.php b/phpBB/includes/ucp/ucp_zebra.php
index e0c08cca16..deab382e8e 100644
--- a/phpBB/includes/ucp/ucp_zebra.php
+++ b/phpBB/includes/ucp/ucp_zebra.php
@@ -93,15 +93,11 @@ class ucp_zebra extends module
if ($mode == 'foes')
{
$perms = array();
- foreach (discover_auth($user_id_ary, array('a_', 'm_')) as $user_id => $forum_ary)
+ foreach (discover_auth($user_id_ary, array('a_', 'm_') as $forum_id => $forum_ary)
{
- foreach ($forum_ary as $forum_id => $option_ary)
+ foreach ($forum_ary as $auth_option => $user_ary)
{
- if (array_sum(array_values($option_ary)))
- {
- $perms[] = $user_id;
- break;
- }
+ $perms += $user_ary;
}
}