mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
tiny fix so the board won't throw an error if it doesn't have any forums
git-svn-id: file:///svn/phpbb/trunk@5546 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
17fdaa0678
commit
626d837db8
1 changed files with 6 additions and 0 deletions
|
@ -538,6 +538,12 @@ 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))
|
||||
{
|
||||
$forum_sql = 'AND forum_id IN (' . implode(', ', $forum_id) . ')';
|
||||
|
|
Loading…
Add table
Reference in a new issue