]> wagnertech.de Git - timetracker.git/blobdiff - export.php
Renamed errors to err to keep things shorter
[timetracker.git] / export.php
index 9f3694ca6a5371896f1268fc32643ac440bc69a6..fb0e7567a5717a0441f230ec0e1d8266800e76c3 100644 (file)
@@ -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,7 +74,7 @@ if ($request->getMethod() == 'POST') {
     }
     exit;
   } else
-    $errors->add($i18n->getKey('error.sys'));
+    $err->add($i18n->getKey('error.sys'));
 } // POST
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));