No topic icon present fix. (max() [function.max]: Array must contain atleast one element)
This commit is contained in:
1 parent
8110d47f00
commit
9e0afb3a25
1 file changed
+1
-1
@@ -353,7 +353,7 @@ function phpbb_fetch_posts($forum_from, $permissions, $number_of_posts, $text_le
|
|||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
$posts['topic_icons'] = ( max($topic_icons) > 0 && $have_icons ) ? true : false;
|
$posts['topic_icons'] = ( (!empty($topic_icons)) && $have_icons ) ? true : false;
|
||||||
|
|
||||||
$posts['topic_count'] = $i;
|
$posts['topic_count'] = $i;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user