X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a7ba11adfecf6cb906749efe5abce688363aef07..0513bd3b951b796926e9f65790b8a9bfd8d5f20b:/import.php diff --git a/import.php b/import.php index d10ee006..d86628b6 100644 --- a/import.php +++ b/import.php @@ -43,11 +43,11 @@ $form->addInput(array('type'=>'submit','name'=>'btn_submit','value'=>$i18n->getK if ($request->isPost()) { - $import = new ttImportHelper($errors); + $import = new ttImportHelper($err); $import->importXml(); - if ($errors->no()) + if ($err->no()) $messages->add($i18n->getKey('form.import.success')); -} // POST +} // isPost $smarty->assign('forms', array($form->getName()=>$form->toArray()) ); $smarty->assign('title', $i18n->getKey('title.import'));