X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=reports.php;h=add2b43f326102245776e7fc9fc842e108d49632;hb=5305983d1ea26da9859eb1d4b54cb9a334c4ca6b;hp=4947e4d968c533a5346c5dfbb74c05ce30fa7a0f;hpb=0dfc4dda20c54e173938eaf196f8e071ce790830;p=timetracker.git 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);