]> wagnertech.de Git - timetracker.git/blobdiff - mobile/time_edit.php
Refactoring, finished replacing with ttUser::isPluginEnabled().
[timetracker.git] / mobile / time_edit.php
index f2083ee46eea1222563ad9c9538a8d6191b707f9..052ec1f18b4f4e5ae0afcb9f1c6e3f8b5fec18f5 100644 (file)
@@ -41,7 +41,7 @@ if (!ttAccessCheck(right_data_entry)) {
 }
 
 // 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);