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