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
This commit is contained in:
janrippl 2018-01-18 18:42:33 +01:00 committed by GitHub
parent ecf9b8e3f1
commit 0309b6e56d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -50,10 +50,15 @@ class pluginCategories extends Plugin {
$count = count($fields['list']);
if (!$this->getValue('hideCero') || $count>0) {
$html .= '<li>';
if ($count < 1) {
$html .= $fields['name'];
$html .= ' ('.count($fields['list']).')';
} else {
$html .= '<a href="'.DOMAIN_CATEGORIES.$key.'">';
$html .= $fields['name'];
$html .= ' ('.count($fields['list']).')';
$html .= '</a>';
}
$html .= '</li>';
}
}