From 77ee17dc3eaba0f878d95c6c73b52ed891c002fe Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Sat, 27 Jan 2018 18:27:42 +0000 Subject: [PATCH] Fixed monthly quotas to properly replace decimal delimiter. --- WEB-INF/lib/ttTimeHelper.class.php | 2 +- WEB-INF/templates/footer.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WEB-INF/lib/ttTimeHelper.class.php b/WEB-INF/lib/ttTimeHelper.class.php index fdb5a3a9..f8eadf25 100644 --- a/WEB-INF/lib/ttTimeHelper.class.php +++ b/WEB-INF/lib/ttTimeHelper.class.php @@ -142,7 +142,7 @@ class ttTimeHelper { // Strip optional h in the end. $value = trim($value, 'h'); if ($user->decimal_mark == ',') - $value = str_replace($value, ',', '.'); + $value = str_replace(',', '.', $value); return (float) $value; } diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index e6b8c40c..7000dc26 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.17.7.3798 | Copyright © Anuko | +  Anuko Time Tracker 1.17.8.3799 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} -- 2.20.1