X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=notification_delete.php;h=50c33952c0938a6fbf6317bfe2034b5fc2a6bf0c;hb=bd68d5a0dc9aad9854df9220538bd0c0db7d6ea0;hp=6723824c1d69a49c8cf75452f606eda5046edf25;hpb=a7ba11adfecf6cb906749efe5abce688363aef07;p=timetracker.git diff --git a/notification_delete.php b/notification_delete.php index 6723824c..50c33952 100644 --- a/notification_delete.php +++ b/notification_delete.php @@ -52,14 +52,14 @@ if ($request->isPost()) { header('Location: notifications.php'); exit(); } else - $errors->add($i18n->getKey('error.db')); + $err->add($i18n->getKey('error.db')); } else - $errors->add($i18n->getKey('error.db')); - } else if ($request->getParameter('btn_cancel')) { + $err->add($i18n->getKey('error.db')); + } elseif ($request->getParameter('btn_cancel')) { header('Location: notifications.php'); exit(); } -} // POST +} // isPost $smarty->assign('notification_to_delete', $notification_to_delete); $smarty->assign('forms', array($form->getName()=>$form->toArray()));