nieuws: hide empty tag lists v3.7
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 17 Sep 2018 15:44:45 +0000 (17:44 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 17 Sep 2018 19:01:38 +0000 (21:01 +0200)
Useless indicator if not used.

nieuws/index.php

index 18f44660d24312bf194fdeea9db70752d8070e96..746baec4869bd6f7be2abe1223fefe78cb1a54bf 100644 (file)
@@ -31,9 +31,11 @@ if ($page and !is_numeric($page)) {
                                ucfirst($tagname)
                        );
                }
-               printf('<p class="tags"><strong>Tags:</strong> %s</p>'."\n",
-                       implode("\n\t", $taglist)
-               );
+               if ($taglist) {
+                       printf('<p class="tags"><strong>Tags:</strong> %s</p>'."\n",
+                               implode("\n\t", $taglist)
+                       );
+               }
        }
        if ($replyform) {
                print placeholder_include('nieuws/replies');