Hide tags & series if there is none. re #63

This commit is contained in:
Sébastien Lucas 2013-05-21 09:10:05 +02:00
parent 332e64a82a
commit 32279afc6e
4 changed files with 14 additions and 3 deletions

View file

@ -29,6 +29,7 @@ class tag extends Base {
public static function getCount() {
$nTags = parent::getDb ()->query('select count(*) from tags')->fetchColumn();
if ($nTags == 0) return NULL;
$entry = new Entry (localize("tags.title"), self::ALL_TAGS_ID,
str_format (localize("tags.alphabetical", $nTags), $nTags), "text",
array ( new LinkNavigation ("?page=".parent::PAGE_ALL_TAGS)));