]> wagnertech.de Git - timetracker.git/blobdiff - mobile/time_delete.php
Switched to using shorter ActionErrors functions
[timetracker.git] / mobile / time_delete.php
index be9d498cdbc685678547b7e1590d26ebf423e021..cd702f7bb8302712b02323e4678fbc3888d89669 100644 (file)
@@ -73,7 +73,7 @@ if ($request->getMethod() == 'POST') {
       $errors->add($i18n->getKey('error.period_locked'));
     }
 
-    if ($errors->isEmpty()) {
+    if ($errors->no()) {
 
       // Delete the record.
       $result = ttTimeHelper::delete($cl_id, $user->getActiveUser());