X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a7ba11adfecf6cb906749efe5abce688363aef07..d9b4512fae9de17f4bc9d77c7532db6ada9bf8c3:/cf_custom_field_delete.php diff --git a/cf_custom_field_delete.php b/cf_custom_field_delete.php index 162ddeb1..86fa7d87 100644 --- a/cf_custom_field_delete.php +++ b/cf_custom_field_delete.php @@ -48,7 +48,7 @@ if ($request->isPost()) { header('Location: cf_custom_fields.php'); exit(); } else - $errors->add($i18n->getKey('error.db')); + $err->add($i18n->getKey('error.db')); } if ($request->getParameter('btn_cancel')) { // Cancel button pressed. @@ -58,9 +58,9 @@ if ($request->isPost()) { } else { $field = CustomFields::getField($id); if (false === $field) - $errors->add($i18n->getKey('error.db')); + $err->add($i18n->getKey('error.db')); - if ($errors->no()) { + if ($err->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')));