]> wagnertech.de Git - timetracker.git/blobdiff - time_delete.php
Switched to using shorter ActionErrors functions
[timetracker.git] / time_delete.php
index e07d1d3390f434b1529e62b121a77fbfeb9f6d57..9c53323ebae0e3937325490f42ecf18ca25498a1 100644 (file)
@@ -72,7 +72,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());