From 8724bf91d245bc4b40561b15c9a563aad297c54c Mon Sep 17 00:00:00 2001 From: jkbockstael Date: Fri, 13 May 2011 14:40:56 +0200 Subject: [PATCH] Reporting : fixed CSV export for multiqueries. --- main/reports/reports.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/reports/reports.php b/main/reports/reports.php index c1ef748875..23b70ae657 100644 --- a/main/reports/reports.php +++ b/main/reports/reports.php @@ -163,11 +163,11 @@ if ($_REQUEST['format'] == 'html' || $_REQUEST['format'] == 'directlink') { Display::display_footer(); } } else if ($_REQUEST['format'] == 'csv') { - $nfields = mysql_num_fields($result); + $nfields = multiquery_num_fields($result); $columns = array(); $columns_islink = array(); for ($i=0; $i < $nfields; $i++) { - $columns[$i] = mysql_field_name($result, $i); + $columns[$i] = multiquery_field_name($result, $i); if (substr($columns[$i], -5, 5) != '_link') { $column_islink[$i] = false; echo $columns[$i].','; @@ -176,7 +176,7 @@ if ($_REQUEST['format'] == 'html' || $_REQUEST['format'] == 'directlink') { } echo "\n"; - while ($row = Database::fetch_row($result)) { + while ($row = multiquery_fetch_row($result)) { for ($i = 0; $i<$nfields; $i++) if (!$columns_islink[$i]) // ignore links echo $row[$i].','; // fixme