fix user export
This commit is contained in:
@@ -34,8 +34,8 @@ $userAssocArray = $sql->assoc_array("
|
|||||||
$filename = "taglista.csv";
|
$filename = "taglista.csv";
|
||||||
$fp = fopen('php://output', 'w');
|
$fp = fopen('php://output', 'w');
|
||||||
|
|
||||||
ob_end_clean();
|
|
||||||
fputcsv($fp, array_keys(reset($userAssocArray)), ';');
|
fputcsv($fp, array_keys(reset($userAssocArray)), ';');
|
||||||
|
ob_end_clean();
|
||||||
|
|
||||||
header('Content-type: application/csv');
|
header('Content-type: application/csv');
|
||||||
header('Content-Disposition: attachment; filename='.$filename);
|
header('Content-Disposition: attachment; filename='.$filename);
|
||||||
|
|||||||
Reference in New Issue
Block a user