Skip to content

Commit

Permalink
main
Browse files Browse the repository at this point in the history
  • Loading branch information
tijavo committed Oct 18, 2023
1 parent 7fa866b commit 1e44ded
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Http/Controllers/ExportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ public function createCsv(){
['person_id', '=', $person->id],
['article_id', '=', 4]
])->count();

fputcsv($file, array($row['Nachname'], $row['Vorname'], $row['Anz_Bier'], $row['Anz_Radler'], $row['Anz_Softdrink'], $row['Anz_Wasser']), ';');
$array = array($row['Nachname'], $row['Vorname'], $row['Anz_Bier'], $row['Anz_Radler'], $row['Anz_Softdrink'], $row['Anz_Wasser']);
$array = array_map("utf8_decode", $array);
fputcsv($file, $array, ';');
}

fclose($file);
};

Expand Down

0 comments on commit 1e44ded

Please sign in to comment.