Fixed monthly quotas to properly replace decimal delimiter.
authorNik Okuntseff <support@anuko.com>
Sat, 27 Jan 2018 18:27:42 +0000 (18:27 +0000)
committerNik Okuntseff <support@anuko.com>
Sat, 27 Jan 2018 18:27:42 +0000 (18:27 +0000)
WEB-INF/lib/ttTimeHelper.class.php
WEB-INF/templates/footer.tpl

index fdb5a3a..f8eadf2 100644 (file)
@@ -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;
     }
 
index e6b8c40..7000dc2 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.17.7.3798 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.17.8.3799 | 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>