X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/fd3db1c1a2b975a23c907b2e9b714a0cfe47f3e0..a7ba11adfecf6cb906749efe5abce688363aef07:/import.php diff --git a/import.php b/import.php index 7d61e038..d10ee006 100644 --- a/import.php +++ b/import.php @@ -41,11 +41,11 @@ $form->addInput(array('type'=>'upload','name'=>'xmlfile','value'=>'browse','maxs // Note: for the above limit to work make sure to set upload_max_filesize and post_max_size in php.ini to at least 16M. $form->addInput(array('type'=>'submit','name'=>'btn_submit','value'=>$i18n->getKey('button.import'))); -if ($request->getMethod() == 'POST') { +if ($request->isPost()) { $import = new ttImportHelper($errors); $import->importXml(); - if ($errors->isEmpty()) + if ($errors->no()) $messages->add($i18n->getKey('form.import.success')); } // POST