]> wagnertech.de Git - timetracker.git/blobdiff - notification_delete.php
Siwtched to using isPost() function
[timetracker.git] / notification_delete.php
index d6a0417911c1ef01f41b9cc7e98eb75594b7abc3..6723824c1d69a49c8cf75452f606eda5046edf25 100644 (file)
@@ -45,7 +45,7 @@ $form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_notification_id
 $form->addInput(array('type'=>'submit','name'=>'btn_delete','value'=>$i18n->getKey('label.delete')));
 $form->addInput(array('type'=>'submit','name'=>'btn_cancel','value'=>$i18n->getKey('button.cancel')));
 
-if ($request->getMethod() == 'POST') {
+if ($request->isPost()) {
   if ($request->getParameter('btn_delete')) {
     if(ttNotificationHelper::get($cl_notification_id)) {
       if (ttNotificationHelper::delete($cl_notification_id)) {