Replacing else if with elseif
[timetracker.git] / report.php
index 775a5dd..dd4b9be 100644 (file)
@@ -64,7 +64,7 @@ if ($client_id && $bean->getAttribute('chinvoice') && ('no_grouping' == $bean->g
   }
 }
 
-if ($request->getMethod() == 'POST') {
+if ($request->isPost()) {
   foreach($_POST as $key => $val) {
     if ('log_id_' == substr($key, 0, 7))
       $time_log_ids[] = substr($key, 7);
@@ -80,7 +80,7 @@ if ($request->getMethod() == 'POST') {
   // Re-display this form.
   header('Location: report.php');
   exit();
-} // POST
+} // isPost
 
 $group_by = $bean->getAttribute('group_by');