fixed ob clean

This commit is contained in:
Tóth Richárd
2019-11-21 17:48:26 +01:00
parent af09d36a76
commit f58d672374

View File

@@ -32,10 +32,10 @@ $userAssocArray = $sql->assoc_array("
");
$filename = "taglista.csv";
ob_end_clean();
$fp = fopen('php://output', 'w');
fputcsv($fp, array_keys(reset($userAssocArray)), ';');
ob_end_clean();
header('Content-type: application/csv');
header('Content-Disposition: attachment; filename='.$filename);