]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/ttTimeHelper.class.php
Cosmetic, changed return values.
[timetracker.git] / WEB-INF / lib / ttTimeHelper.class.php
index a8bde9872e1769c6f7020ba1a872bc33febdcf57..70844eebb38ff0fd8504004f8b456e52d5d6cb22 100644 (file)
@@ -567,7 +567,7 @@ class ttTimeHelper {
       $val = $res->fetchRow();
       return sec_to_time_fmt_hm($val['sm']);
     }
       $val = $res->fetchRow();
       return sec_to_time_fmt_hm($val['sm']);
     }
-    return 0;
+    return false;
   }
 
   // getTimeForMonth - gets total time for a user for a given month.
   }
 
   // getTimeForMonth - gets total time for a user for a given month.
@@ -582,7 +582,7 @@ class ttTimeHelper {
       $val = $res->fetchRow();
       return sec_to_time_fmt_hm($val['sm']);
     }
       $val = $res->fetchRow();
       return sec_to_time_fmt_hm($val['sm']);
     }
-    return 0;
+    return false;
   }
 
   // getUncompleted - retrieves an uncompleted record for user, if one exists.
   }
 
   // getUncompleted - retrieves an uncompleted record for user, if one exists.