X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/251996aed11c648ecaa30f77383e0384bfadf7a5..e457063f931911a1e9fc0917767dc07f92d24f02:/cf_custom_field_edit.php diff --git a/cf_custom_field_edit.php b/cf_custom_field_edit.php index 796ad172..1f846590 100644 --- a/cf_custom_field_edit.php +++ b/cf_custom_field_edit.php @@ -68,9 +68,8 @@ if ($request->getMethod() == 'POST') { if ($res) { header('Location: cf_custom_fields.php'); exit(); - } else { + } else $errors->add($i18n->getKey('error.db')); - } } } @@ -79,4 +78,3 @@ $smarty->assign('onload', 'onLoad="document.fieldForm.name.focus()"'); $smarty->assign('title', $i18n->getKey('title.cf_edit_custom_field')); $smarty->assign('content_page_name', 'cf_custom_field_edit.tpl'); $smarty->display('index.tpl'); -?> \ No newline at end of file