X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=time.php;h=193f7a2be66289336750fdb9939fcfe618a35bfc;hb=05e0f5266a2959a452adfcae9d53c9729d3a3668;hp=ebe6356c8a1a981d1935b5f18524ecbdba676388;hpb=70272dc970919c348288bd09ff835f05e7538949;p=timetracker.git diff --git a/time.php b/time.php index ebe6356c..193f7a2b 100644 --- a/time.php +++ b/time.php @@ -57,7 +57,7 @@ if(!$cl_date) $_SESSION['date'] = $cl_date; // 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);