1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-04 21:44:57 +02: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:
Nils Adermann 2006-02-12 14:48:07 +00:00
parent 17fdaa0678
commit 626d837db8

View File

@ -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) . ')';