Simplified ttUser::getUsers a bit.
authorNik Okuntseff <support@anuko.com>
Sat, 22 Dec 2018 15:56:01 +0000 (15:56 +0000)
committerNik Okuntseff <support@anuko.com>
Sat, 22 Dec 2018 15:56:01 +0000 (15:56 +0000)
WEB-INF/lib/ttUser.class.php
WEB-INF/templates/footer.tpl

index 73ec7a1..1bfd6f4 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);
index 3246cac..91370d8 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.18.36.4682 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.18.36.4683 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>