- Fix the CSV generator

This commit is contained in:
dave 2007-03-18 07:19:00 +00:00
parent 331bedc7e7
commit 857cb6aa7b
2 changed files with 2 additions and 1 deletions

View File

@ -242,6 +242,7 @@ foreach($stock as $n=>$v) {
function report_gen_by_id($report_id, $format=NULL)
{
global $options;
$report = report_load($report_id);
if($format != NULL) {
$keys = array_keys($options['type']['values']);

View File

@ -29,7 +29,7 @@
require_once('reports.inc.php');
$id = intval($_GET['id']);
$format = stripslashes($_GET['format']);
$format = stripslashes($_GET['type']);
if($format == '') $format = NULL;