Merge 0309b6e56dcb542c8994ee34c71b2acb103717a3 into a515a588b2fd1e343aaf0dee356672b42bd197e9

This commit is contained in:
janrippl 2018-08-01 19:13:38 +00:00 committed by GitHub
commit 4399c912a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,10 +54,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>';
}
}
@ -68,4 +73,4 @@ class pluginCategories extends Plugin {
return $html;
}
}
}