]> wagnertech.de Git - timetracker.git/blobdiff - mobile/timer.php
Refactoring, finished replacing with ttUser::isPluginEnabled().
[timetracker.git] / mobile / timer.php
index 949d585cfd44eb00b6243eee1fd6ff1193e45f5e..1ccc78934e8f2b9178289ac77d7b11ccf2411fff 100644 (file)
@@ -51,7 +51,7 @@ $_SESSION['date'] = $cl_date;
 // TODO: for time page we may limit the day to today only.
 
 // 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);