X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2FttReportHelper.class.php;h=966865fbb673934fe8b4aafc0e07efe730d85b7c;hb=9b5a1834db24f25803fc0d461394e4a2bfcc44b7;hp=5fd2253177e36ad094b0c54a6ba1104cf1757d73;hpb=ed499fa49d8dad66119752b4cfe213d30da2bed6;p=timetracker.git diff --git a/WEB-INF/lib/ttReportHelper.class.php b/WEB-INF/lib/ttReportHelper.class.php index 5fd22531..966865fb 100644 --- a/WEB-INF/lib/ttReportHelper.class.php +++ b/WEB-INF/lib/ttReportHelper.class.php @@ -513,7 +513,7 @@ class ttReportHelper { $res = $mdb2->query($sql); if (is_a($res, 'PEAR_Error')) die($res->getMessage()); while ($val = $res->fetchRow()) { - $time = $val['time'] ? ttTimeHelper::minutesToDuration($val['time'] / 60) : null; + $time = ttTimeHelper::minutesToDuration($val['time'] / 60); $rowLabel = ttReportHelper::makeGroupByLabel($val['group_field'], $options); if ($options['show_cost']) { $decimalMark = $user->getDecimalMark(); @@ -595,7 +595,7 @@ class ttReportHelper { if (is_a($res, 'PEAR_Error')) die($res->getMessage()); $val = $res->fetchRow(); - $total_time = $val['time'] ? ttTimeHelper::minutesToDuration($val['time'] / 60) : null; + $total_time = ttTimeHelper::minutesToDuration($val['time'] / 60); if ($options['show_cost']) { $total_cost = $val['cost']; if (!$total_cost) $total_cost = '0.00';