X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=report.php;h=a18ff1f1a382bf28c49400b569349070a86fb04b;hb=b0e8ffd3af439b5dc6dd5044a46a906d9833932b;hp=dd4b9be3aedf827ab5ff4646723a9627cd6bb408;hpb=eb55e2f8ca3859482a389795e03b45283e14ef36;p=timetracker.git diff --git a/report.php b/report.php index dd4b9be3..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);