From 0309b6e56dcb542c8994ee34c71b2acb103717a3 Mon Sep 17 00:00:00 2001 From: janrippl <33397305+janrippl@users.noreply.github.com> Date: Thu, 18 Jan 2018 18:42:33 +0100 Subject: [PATCH] Fatal error Fatal error: Call to a member function coverImage() on boolean in /var/www/nudiste/bl-themes/nudiste/init.php on line 9 Empty categories enabled for showing --- bl-plugins/categories/plugin.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bl-plugins/categories/plugin.php b/bl-plugins/categories/plugin.php index b5cee902..5bf57b2d 100644 --- a/bl-plugins/categories/plugin.php +++ b/bl-plugins/categories/plugin.php @@ -50,10 +50,15 @@ class pluginCategories extends Plugin { $count = count($fields['list']); if (!$this->getValue('hideCero') || $count>0) { $html .= '
  • '; + if ($count < 1) { + $html .= $fields['name']; + $html .= ' ('.count($fields['list']).')'; + } else { $html .= ''; $html .= $fields['name']; $html .= ' ('.count($fields['list']).')'; $html .= ''; + } $html .= '
  • '; } } @@ -64,4 +69,4 @@ class pluginCategories extends Plugin { return $html; } -} \ No newline at end of file +}