X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/1fad211ab12fc66117094e33425f8414fccd2cfa..a7ba11adfecf6cb906749efe5abce688363aef07:/import.php diff --git a/import.php b/import.php index f604c4ff..d10ee006 100644 --- a/import.php +++ b/import.php @@ -41,7 +41,7 @@ $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();