]> wagnertech.de Git - timetracker.git/blobdiff - client_delete.php
Fixed a critical issue with previous commit (hard-coded timestamp for testing).
[timetracker.git] / client_delete.php
index e566455a86de0669633ae99d936bdb539eddc1d0..2340db03f73de6bfb33d0bfbb47a3dfeb0f182e3 100644 (file)
@@ -55,16 +55,16 @@ if ($request->isPost()) {
         header('Location: clients.php');
         exit();
       } else
-        $errors->add($i18n->getKey('error.db'));
+        $err->add($i18n->getKey('error.db'));
     }
-  } else 
-      $errors->add($i18n->getKey('error.db'));
+  } else
+    $err->add($i18n->getKey('error.db'));
 
   if ($request->getParameter('btn_cancel')) {
     header('Location: clients.php');
     exit();
   }
-} // POST
+} // isPost
 
 $smarty->assign('client_to_delete', $client_to_delete);
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));