2008-10-10 Evi Vanoost <vanooste@rcbi.rochester.edu>

* operation/reporting/reporting_xml.php: Resubmit because I put the previous bug back.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1141 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
guruevi 2008-10-10 21:08:54 +00:00
parent 6bf083ab93
commit ff5e0e9e51
1 changed files with 1 additions and 2 deletions

View File

@ -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 '<?xml version="1.0" encoding="UTF-8" ?>';
$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) {