fix user export

This commit is contained in:
Tóth Richárd
2019-12-04 22:22:34 +01:00
parent e2df4236b5
commit 42b55f047e

View File

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