diff options
Diffstat (limited to 'phpBB/includes/functions_display.php')
-rw-r--r-- | phpBB/includes/functions_display.php | 11 |
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 |