]> wagnertech.de Git - timetracker.git/blobdiff - cf_custom_field_delete.php
Removed unused function
[timetracker.git] / cf_custom_field_delete.php
index 4e17cd03489300fc035bf3ccbdb077256666f412..139253d485ba7cfee08b5af2505a99ea3c24b9f3 100644 (file)
@@ -60,13 +60,13 @@ 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')));
   }
 }
-       
+
 $smarty->assign('field', $field['label']);
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.fieldDeleteForm.btn_cancel.focus()"');