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']); $count = count($fields['list']);
if (!$this->getValue('hideCero') || $count>0) { if (!$this->getValue('hideCero') || $count>0) {
$html .= '<li>'; $html .= '<li>';
if ($count < 1) {
$html .= $fields['name'];
$html .= ' ('.count($fields['list']).')';
} else {
$html .= '<a href="'.DOMAIN_CATEGORIES.$key.'">'; $html .= '<a href="'.DOMAIN_CATEGORIES.$key.'">';
$html .= $fields['name']; $html .= $fields['name'];
$html .= ' ('.count($fields['list']).')'; $html .= ' ('.count($fields['list']).')';
$html .= '</a>'; $html .= '</a>';
}
$html .= '</li>'; $html .= '</li>';
} }
} }
@ -64,4 +69,4 @@ class pluginCategories extends Plugin {
return $html; return $html;
} }
} }