]> wagnertech.de Git - timetracker.git/blobdiff - topdf.php
Improved detection of browser language.
[timetracker.git] / topdf.php
index 0126bc616b6a0f45dcf110c36b1d213e08f2d7f5..d017299b7ccb5f424afd6ae3f886576518e688a4 100644 (file)
--- a/topdf.php
+++ b/topdf.php
@@ -49,7 +49,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);
 }