From 9e0afb3a2509a0ad729dd84a1e456e5858f4b29e Mon Sep 17 00:00:00 2001 From: Kevin Date: Mon, 18 Aug 2008 16:38:47 +0000 Subject: [PATCH] No topic icon present fix. (max() [function.max]: Array must contain atleast one element) --- root/portal/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/portal/includes/functions.php b/root/portal/includes/functions.php index 6a4af834..72888121 100644 --- a/root/portal/includes/functions.php +++ b/root/portal/includes/functions.php @@ -353,7 +353,7 @@ function phpbb_fetch_posts($forum_from, $permissions, $number_of_posts, $text_le $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;