X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=report.php;h=a18ff1f1a382bf28c49400b569349070a86fb04b;hb=e84f77ca5b0a5470425cac47aa90563508793699;hp=775a5dd83e390a859d903921a0cf10167b3094e9;hpb=4426ed3bc8e53d5013d356505283c916e3826392;p=timetracker.git diff --git a/report.php b/report.php index 775a5dd8..a18ff1f1 100644 --- a/report.php +++ b/report.php @@ -39,7 +39,7 @@ if (!ttAccessCheck(right_view_reports)) { } // Use custom fields plugin if it is enabled. -if (in_array('cf', explode(',', $user->plugins))) { +if ($user->isPluginEnabled('cf')) { require_once('plugins/CustomFields.class.php'); $custom_fields = new CustomFields($user->team_id); $smarty->assign('custom_fields', $custom_fields); @@ -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');