Some refactoring
[timetracker.git] / import.php
index e4a74ee..23715e0 100644 (file)
@@ -45,9 +45,8 @@ if ($request->isPost()) {
 
   $import = new ttImportHelper($err);
   $import->importXml();
-  if ($err->no())
-    $messages->add($i18n->getKey('form.import.success'));
-} // POST
+  if ($err->no()) $msg->add($i18n->getKey('form.import.success'));
+} // isPost
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()) );
 $smarty->assign('title', $i18n->getKey('title.import'));