diff --git a/pandora_console/operation/reporting/reporting_xml.php b/pandora_console/operation/reporting/reporting_xml.php index a8242cf175..015028d1d0 100644 --- a/pandora_console/operation/reporting/reporting_xml.php +++ b/pandora_console/operation/reporting/reporting_xml.php @@ -122,6 +122,7 @@ if ($report['id_user'] != $config['id_user'] && ! dame_admin ($config['id_user'] return; } +header ('Content-type: application/xml; charset="utf-8"', true); echo ''; $date = (string) get_parameter ('date', date ('Y-m-j')); @@ -288,8 +289,6 @@ foreach ($contents as $content) { array_push ($xml["reports"], $data); } -header ('Content-type: application/xml; charset="utf-8"',true); - function xml_array ($array) { foreach ($array as $name => $value) {