X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/fd3db1c1a2b975a23c907b2e9b714a0cfe47f3e0..4df61856250643178176215235ffe106cb3cb4ea:/cf_custom_field_add.php diff --git a/cf_custom_field_add.php b/cf_custom_field_add.php index 056ce531..a5053054 100644 --- a/cf_custom_field_add.php +++ b/cf_custom_field_add.php @@ -57,7 +57,7 @@ if ($request->getMethod() == 'POST') { // Validate user input. if (!ttValidString($cl_field_name)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.thing_name')); - if ($errors->isEmpty()) { + if ($errors->no()) { $res = CustomFields::insertField($cl_field_name, $cl_field_type, $cl_required); if ($res) { header('Location: cf_custom_fields.php');