X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=export.php;h=f0469497e40873c3a19c2f480386ad576407f518;hb=e1703495130c8ed88fe210f50a2a6b453b3c566b;hp=9f3694ca6a5371896f1268fc32643ac440bc69a6;hpb=fd3db1c1a2b975a23c907b2e9b714a0cfe47f3e0;p=timetracker.git diff --git a/export.php b/export.php index 9f3694ca..f0469497 100644 --- a/export.php +++ b/export.php @@ -45,7 +45,7 @@ $form = new Form('exportForm'); $form->addInput(array('type'=>'combobox','name'=>'compression','value'=>$cl_compression,'data'=>$compressors)); $form->addInput(array('type'=>'submit','name'=>'btn_submit','value'=>$i18n->getKey('button.export'))); -if ($request->getMethod() == 'POST') { +if ($request->isPost()) { $filename = 'team_data.xml'; $mime_type = 'text/xml'; @@ -74,8 +74,8 @@ if ($request->getMethod() == 'POST') { } exit; } else - $errors->add($i18n->getKey('error.sys')); -} // POST + $err->add($i18n->getKey('error.sys')); +} // isPost $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('title', $i18n->getKey('title.export'));