X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/0dfc4dda20c54e173938eaf196f8e071ce790830..d9b4512fae9de17f4bc9d77c7532db6ada9bf8c3:/reports.php diff --git a/reports.php b/reports.php index 4947e4d9..add2b43f 100644 --- a/reports.php +++ b/reports.php @@ -43,7 +43,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);