From: Nik Okuntseff Date: Sat, 22 Dec 2018 15:56:01 +0000 (+0000) Subject: Simplified ttUser::getUsers a bit. X-Git-Tag: timetracker_1.19-1~383 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=dff61baa6b8f972c0a74119258b81e6884a9191f;p=timetracker.git Simplified ttUser::getUsers a bit. --- diff --git a/WEB-INF/lib/ttUser.class.php b/WEB-INF/lib/ttUser.class.php index 73ec7a1e..1bfd6f44 100644 --- a/WEB-INF/lib/ttUser.class.php +++ b/WEB-INF/lib/ttUser.class.php @@ -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); diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 3246cac2..91370d82 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.36.4682 | Copyright © Anuko | +  Anuko Time Tracker 1.18.36.4683 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve}