X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=report.php;h=a18ff1f1a382bf28c49400b569349070a86fb04b;hb=f7f5a1b8e3f8d12902fa462d7426fb4e0b81ea0d;hp=a34238fbcc144e5b09b664fceb926414726e9114;hpb=a7ba11adfecf6cb906749efe5abce688363aef07;p=timetracker.git diff --git a/report.php b/report.php index a34238fb..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); @@ -80,7 +80,7 @@ if ($request->isPost()) { // Re-display this form. header('Location: report.php'); exit(); -} // POST +} // isPost $group_by = $bean->getAttribute('group_by');