Fix excluded 0 listing in index

This commit is contained in:
Dendy 2020-12-24 14:36:28 +01:00
parent 44d7e6f8a4
commit d6b3e5f986
Signed by: dendy
GPG Key ID: 0168B35FFD7F608F
1 changed files with 4 additions and 1 deletions

View File

@ -31,7 +31,10 @@
foreach($output as $tag){ foreach($output as $tag){
$count = ""; $count = "";
exec($tmsu . "files -c '" . addcslashes($tag . $exclude_query, '(..)') . "'", $count); exec($tmsu . "files -c '" . addcslashes($tag . $exclude_query, '(..)') . "'", $count);
echo("<a href='http://" . $_SERVER['HTTP_HOST'] . "/tag.php?t=" . $tag . "'>(" . $count[0] .") " . $tag ."</a>, ");
if($count[0] !== "0"){
echo("<a href='http://" . $_SERVER['HTTP_HOST'] . "/tag.php?t=" . $tag . "'>(" . $count[0] .") " . $tag ."</a>, ");
}
} }
?> ?>
</body> </body>