Fixed issue #4 - copy-paste error in fillDropdowns().
[timetracker.git] / tofile.php
index 26d1cba..299b4a1 100644 (file)
@@ -38,7 +38,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);
 }