diff --git a/main/reports/reports.php b/main/reports/reports.php index e1e4576df4..8fde7f1c7b 100644 --- a/main/reports/reports.php +++ b/main/reports/reports.php @@ -65,13 +65,19 @@ if ($_REQUEST['format'] == 'html') { echo '
'.mysql_field_name($result, $i).' | '; + for ($i=0; $i < $nfields; $i++) + if (substr(mysql_field_name($result, $i), -5, 5) != '_link') + echo ''.mysql_field_name($result, $i).' | '; echo '|
---|---|---|
'.$col.' | '; + foreach ($row as $colName => $colValue) + if (substr($colName, -5, 5) != '_link'){ // ignore links + if (array_key_exists($colName.'_link', $row)) // link is defined + echo ''.$colValue.' | '; + else + echo ''.$colValue.' | '; + } echo "