]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/ttTimeHelper.class.php
Fixed a bug with Monthly Quota plugin.
[timetracker.git] / WEB-INF / lib / ttTimeHelper.class.php
index f378d0c0a255dd5a732369b6378ba4382a3be29c..f98d67572febece955e7a115f46f86a93e4587b1 100644 (file)
@@ -148,7 +148,7 @@ class ttTimeHelper {
   
   // fromMinutes - converts a number of minutes to format 00:00
   static function fromMinutes($minutes){
-    $hours = (string)((int)($minutes / 60));
+    $hours = (string)((int)abs($minutes / 60));
     $mins = (string)(abs($minutes % 60));
     if (strlen($hours) == 1)
       $hours = '0'.$hours;