prevent division by zero errors

This commit is contained in:
tmont 2009-06-19 06:07:51 +00:00
parent ad12bcd557
commit a1ac29341b

View File

@ -213,6 +213,11 @@
//summary
$total = count($passed) + count($failed) + count($erred) + count($ignored);
if ($total === 0) {
return;
}
$countPad = strlen($total);
$width = 12 + $countPad + 3 + 6 + 3;