X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/62da0ed23af9ae74faf8d103bc3ce025c56b673e..437925de08860894e489db00c1d2d967c18267a2:/cf_custom_field_edit.php diff --git a/cf_custom_field_edit.php b/cf_custom_field_edit.php index 15146db6..b6a1f461 100644 --- a/cf_custom_field_edit.php +++ b/cf_custom_field_edit.php @@ -42,7 +42,7 @@ if (false === $field) $errors->add($i18n->getKey('error.db')); $form = new Form('fieldForm'); -if ($errors->isEmpty()) { +if ($errors->no()) { $form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'name','value'=>$field['label'])); $form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id)); $form->addInput(array('type'=>'checkbox','name'=>'required','data'=>1,'value'=>$field['required'])); @@ -62,7 +62,7 @@ if ($request->getMethod() == 'POST') { // Validate user input. if (!ttValidString($cl_name)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.thing_name')); - if ($errors->isEmpty()) { + if ($errors->no()) { $res = CustomFields::updateField($cl_id, $cl_name, $cl_type, $cl_required); if ($res) { header('Location: cf_custom_fields.php');