X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/5ef582473f6b329be18ad83c61e053fdcd9c6ed5..8c194ac6af2accb4f45e35e93629037a0983cc3f:/cf_dropdown_options.php diff --git a/cf_dropdown_options.php b/cf_dropdown_options.php index e12900b2..544eefdb 100644 --- a/cf_dropdown_options.php +++ b/cf_dropdown_options.php @@ -31,7 +31,7 @@ require_once('plugins/CustomFields.class.php'); import('form.Form'); // Access check. -if (!ttAccessCheck(right_manage_team)) { +if (!ttAccessCheck(right_manage_team) || !$user->isPluginEnabled('cf')) { header('Location: access_denied.php'); exit(); } @@ -39,7 +39,7 @@ if (!ttAccessCheck(right_manage_team)) { $field_id = $request->getParameter('field_id'); $options = CustomFields::getOptions($field_id); if (false === $options) - $errors->add($i18n->getKey('error.db')); + $err->add($i18n->getKey('error.db')); $form = new Form('dropdownOptionsForm');