Changed '>=' to '>', fixes #711

This commit is contained in:
Andreas Burchert (scarya)
2011-04-16 15:38:25 +02:00
parent 77b515751e
commit d02daee582

View File

@@ -207,7 +207,7 @@ while($row = $db->fetch_array($result))
while($customer = $db->fetch_array($customers))
{
if ($customer['traffic'] >= 0) {
if ($customer['traffic'] > 0) {
$mail_body.= sprintf('%-15s', $customer['loginname']) . ' ' . sprintf('%-12d', $customer['traffic_used_total']) . ' (' . sprintf('%00.3f%%', (($customer['traffic_used_total'] * 100) / $customer['traffic'])) . ') ' . $customer['traffic'] . "\n";
} else {
$mail_body.= sprintf('%-15s', $customer['loginname']) . ' ' . sprintf('%-12d', $customer['traffic_used_total']) . ' (' . sprintf('%00.3f%%', $customer['traffic_used_total']) . ') ' . $customer['traffic'] . "\n";