From dff61baa6b8f972c0a74119258b81e6884a9191f Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Sat, 22 Dec 2018 15:56:01 +0000 Subject: [PATCH] Simplified ttUser::getUsers a bit. --- WEB-INF/lib/ttUser.class.php | 4 +--- WEB-INF/templates/footer.tpl | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) 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} -- 2.20.1