Hide tags & series if there is none. re #63
This commit is contained in:
parent
332e64a82a
commit
32279afc6e
4 changed files with 14 additions and 3 deletions
1
tag.php
1
tag.php
|
@ -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)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue