Siwtched to using isPost() function
[timetracker.git] / time_delete.php
index 9c53323..8bbc597 100644 (file)
@@ -53,7 +53,7 @@ if ($time_rec['invoice_id']) die($i18n->getKey('error.sys'));
 // Escape comment for presentation.
 $time_rec['comment'] = htmlspecialchars($time_rec['comment']);
 
-if ($request->getMethod() == 'POST') {
+if ($request->isPost()) {
   if ($request->getParameter('delete_button')) { // Delete button pressed.
 
     // Determine if it's okay to delete the record.