X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/62da0ed23af9ae74faf8d103bc3ce025c56b673e..437925de08860894e489db00c1d2d967c18267a2:/cf_custom_field_delete.php diff --git a/cf_custom_field_delete.php b/cf_custom_field_delete.php index 78cd380b..139253d4 100644 --- a/cf_custom_field_delete.php +++ b/cf_custom_field_delete.php @@ -60,7 +60,7 @@ if ($request->getMethod() == 'POST') { if (false === $field) $errors->add($i18n->getKey('error.db')); - if ($errors->isEmpty()) { + if ($errors->no()) { $form->addInput(array('type'=>'hidden','name'=>'id','value'=>$id)); $form->addInput(array('type'=>'submit','name'=>'btn_delete','value'=>$i18n->getKey('label.delete'))); $form->addInput(array('type'=>'submit','name'=>'btn_cancel','value'=>$i18n->getKey('button.cancel')));