aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_display.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2006-02-12 15:45:50 +0000
committerNils Adermann <naderman@naderman.de>2006-02-12 15:45:50 +0000
commitddf61cbaef70233417fe051f8f2c5cf0e40778f8 (patch)
tree07637035b67eabe644b7cea16d97f34985f42a49 /phpBB/includes/functions_display.php
parent6c1f403b8ed77c5c0c96563e07e88b779d92dd64 (diff)
downloadforums-ddf61cbaef70233417fe051f8f2c5cf0e40778f8.tar
forums-ddf61cbaef70233417fe051f8f2c5cf0e40778f8.tar.gz
forums-ddf61cbaef70233417fe051f8f2c5cf0e40778f8.tar.bz2
forums-ddf61cbaef70233417fe051f8f2c5cf0e40778f8.tar.xz
forums-ddf61cbaef70233417fe051f8f2c5cf0e40778f8.zip
*** empty log message ***
git-svn-id: file:///svn/phpbb/trunk@5548 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_display.php')
-rw-r--r--phpBB/includes/functions_display.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index ad6a64f897..775805f26a 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -538,14 +538,13 @@ function get_moderators(&$forum_moderators, $forum_id = false)
return;
}
- // If we don't have a forum then we can't have a moderator
- if (!sizeof($forum_id))
- {
- return;
- }
-
if ($forum_id !== false && is_array($forum_id))
{
+ // If we don't have a forum then we can't have a moderator
+ if (!sizeof($forum_id))
+ {
+ return;
+ }
$forum_sql = 'AND forum_id IN (' . implode(', ', $forum_id) . ')';
}
else