import('form.Form');
// Access check.
-if (!ttAccessCheck(right_manage_team)) {
+if (!ttAccessCheck(right_manage_team) || !$user->isPluginEnabled('cf')) {
header('Location: access_denied.php');
exit();
}
$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');
$smarty->assign('title', $i18n->getKey('title.cf_dropdown_options'));
$smarty->assign('content_page_name', 'cf_dropdown_options.tpl');
$smarty->display('index.tpl');
-?>
\ No newline at end of file