From d6b3e5f986b3116176eefa7387bb3a42e38cd670 Mon Sep 17 00:00:00 2001 From: Dendy Date: Thu, 24 Dec 2020 14:36:28 +0100 Subject: [PATCH] Fix excluded 0 listing in index --- index.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 678f79d..247d69b 100644 --- a/index.php +++ b/index.php @@ -31,7 +31,10 @@ foreach($output as $tag){ $count = ""; exec($tmsu . "files -c '" . addcslashes($tag . $exclude_query, '(..)') . "'", $count); - echo("(" . $count[0] .") " . $tag .", "); + + if($count[0] !== "0"){ + echo("(" . $count[0] .") " . $tag .", "); + } } ?>