Fixed monthly quotas to properly replace decimal delimiter.
[timetracker.git] / WEB-INF / lib / ttTimeHelper.class.php
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;
     }