X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/9e82b53fc5d8cb1e54b5fde774fa68a916f28b4c..d9b4512fae9de17f4bc9d77c7532db6ada9bf8c3:/notification_delete.php diff --git a/notification_delete.php b/notification_delete.php index cd0d748e..50c33952 100644 --- a/notification_delete.php +++ b/notification_delete.php @@ -55,11 +55,11 @@ if ($request->isPost()) { $err->add($i18n->getKey('error.db')); } else $err->add($i18n->getKey('error.db')); - } else if ($request->getParameter('btn_cancel')) { + } 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()));