X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cf_dropdown_option_delete.php;h=a1f4b139c53d597436d2abbe7a14ee22287163f1;hb=1fad211ab12fc66117094e33425f8414fccd2cfa;hp=c53f16eb15e69de986bf21d268fbf78e04fe081b;hpb=0e3c4d629800de449c5a1bb9da780993e5dc5277;p=timetracker.git diff --git a/cf_dropdown_option_delete.php b/cf_dropdown_option_delete.php index c53f16eb..a1f4b139 100644 --- a/cf_dropdown_option_delete.php +++ b/cf_dropdown_option_delete.php @@ -62,7 +62,7 @@ if ($request->getMethod() == 'POST') { if (false === $option) $errors->add($i18n->getKey('error.db')); - if ($errors->isEmpty()) { + if ($errors->no()) { $form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_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')));