Index: /temp/trunk/html/admin/total/index.php
===================================================================
--- /temp/trunk/html/admin/total/index.php	(revision 7239)
+++ /temp/trunk/html/admin/total/index.php	(revision 7240)
@@ -68,5 +68,8 @@
 }
 
-switch($_POST['mode']) {
+
+$mode = $objFormParam->getValue('mode');
+
+switch($mode) {
 case 'pdf':
 case 'csv':
