1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fix for task report

This commit is contained in:
Hillel Coren 2018-03-19 18:15:38 +02:00
parent 72b89c816b
commit 57e2c93e85

View File

@ -149,7 +149,7 @@ class Task extends EntityModel
$endTime = min($endTime, $endTimeCutoff); $endTime = min($endTime, $endTimeCutoff);
} }
$duration += $endTime - $startTime; $duration += max($endTime - $startTime, 0);
} }
return $duration; return $duration;