X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=report.php;h=dd4b9be3aedf827ab5ff4646723a9627cd6bb408;hb=eb55e2f8ca3859482a389795e03b45283e14ef36;hp=6e68c1790910b19c75ea847b9e5eef11918f3483;hpb=5ef582473f6b329be18ad83c61e053fdcd9c6ed5;p=timetracker.git diff --git a/report.php b/report.php index 6e68c179..dd4b9be3 100644 --- a/report.php +++ b/report.php @@ -64,23 +64,23 @@ 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); + if ('log_id_' == substr($key, 0, 7)) + $time_log_ids[] = substr($key, 7); if ('item_id_' == substr($key, 0, 8)) - $expense_item_ids[] = substr($key, 8); - if ('recent_invoice' == $key) - $invoice_id = $val; + $expense_item_ids[] = substr($key, 8); + if ('recent_invoice' == $key) + $invoice_id = $val; } if ($time_log_ids || $expense_item_ids) { - // Some records are checked for invoice editing... Adjust their invoice accordingly. - ttReportHelper::assignToInvoice($invoice_id, $time_log_ids, $expense_item_ids); + // Some records are checked for invoice editing. Adjust their invoice accordingly. + ttReportHelper::assignToInvoice($invoice_id, $time_log_ids, $expense_item_ids); } // Re-display this form. header('Location: report.php'); exit(); -} // post +} // isPost $group_by = $bean->getAttribute('group_by');