Former-commit-id: 489946341bfbf5c985750eac90dd12f7cbea91e5
This commit is contained in:
marcos.alconada 2019-04-23 14:53:43 +02:00
commit 4f25c89a74
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ function reporting_xml_get_report($report, $filename, $return=false)
}
// Download if marked to download.
if ($filename === false) {
if ($filename !== false) {
header('Content-Type: application/xml; charset=UTF-8');
header('Content-Disposition: attachment; filename="'.$filename.'.xml"');
}