]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/ttUser.class.php
Simplified ttUser::getUsers a bit.
[timetracker.git] / WEB-INF / lib / ttUser.class.php
index 73ec7a1e941abeb31b1ada038d4e6faf5a700e83..1bfd6f440dde13cb003b1f3d02cfa98be5b6f59d 100644 (file)
@@ -441,9 +441,7 @@ class ttUser {
       }
       if ($include_quota) {
         $quota = $val['quota_percent'];
-        if (null == $quota)
-          $quota = '100'; // Null means 100%. Perhaps enforce not NULLs in db and eliminate this check.
-        elseif (ttEndsWith($quota, '.00'))
+        if (ttEndsWith($quota, '.00'))
           $quota = substr($quota, 0, strlen($quota)-3); // Trim trailing ".00";
         elseif ($replaceDecimalMark)
           $quota = str_replace('.', $decimal_mark, $quota);