]> wagnertech.de Git - timetracker.git/blobdiff - quotas.php
Refactoring - moved quota related functions into quota class.
[timetracker.git] / quotas.php
index d79e433ab5a6b4017cace19ea90b65bb1cfa5127..106538934e06b170ce4ca6029992a017203c8f7e 100644 (file)
@@ -73,7 +73,7 @@ if ($request->isPost()){
   // Validate user input.
   for ($i = 0; $i < count($months); $i++){
     $val = $request->getParameter($months[$i]);
-    if (!ttTimeHelper::isValidQuota($val))
+    if (!$quota->isValidQuota($val))
       $err->add($i18n->getKey('error.field'), $months[$i]);
   }
   // Finished validating user input.