SpamBee: Only show entries in stats which are not 0.

This commit is contained in:
Janek Bevendorff 2012-08-19 17:55:45 +02:00
parent 1293fce7ee
commit dc18afe298

View file

@ -131,7 +131,9 @@ Bayes:%Bayes%'
}
$searchResult = isset($stats[$day][$singleSearch[1]]) ? $stats[$day][$singleSearch[1]] : 0;
$statsString .= "{$singleSearch[0]}: {$searchResult}<br>";
if ($searchResult) {
$statsString .= "{$singleSearch[0]}: {$searchResult}<br>";
}
}
}