From d6b429a7f704a57f5efc29a7a7f62444f8b6f996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Mon, 17 Sep 2018 11:46:10 +0200 Subject: [PATCH] Do not display empty tags on front page --- www/_templates/front_wrap.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/_templates/front_wrap.php b/www/_templates/front_wrap.php index 3d21d89..825d21b 100644 --- a/www/_templates/front_wrap.php +++ b/www/_templates/front_wrap.php @@ -24,7 +24,9 @@ " . $tag['name'] . " (" . $tag['count'] . ")"; + if ($tag['count'] > 0) { + echo '
  • " . $tag['name'] . " (" . $tag['count'] . ")
  • "; + } } ?>