2 Commits

Author SHA1 Message Date
3045c2df3d Merge branch 'main' of https://git.icc.gg/ivancarlos/bundledcmdb
All checks were successful
Build, Push, Publish / Build & Release (push) Successful in 24m18s
2025-12-17 15:21:10 -03:00
6d5524a215 fix export excel 2025-12-17 15:20:51 -03:00

View File

@@ -140,7 +140,7 @@ $output = fopen('php://output', 'w');
fwrite($output, "\xEF\xBB\xBF"); fwrite($output, "\xEF\xBB\xBF");
// Write CSV header row // Write CSV header row
fputcsv($output, $columns_to_export); fputcsv($output, $columns_to_export, ",", "\"", "\\");
// Write all rows // Write all rows
foreach ($allRows as $row) { foreach ($allRows as $row) {
@@ -152,7 +152,7 @@ foreach ($allRows as $row) {
} }
$exportRow[] = $val; $exportRow[] = $val;
} }
fputcsv($output, $exportRow); fputcsv($output, $exportRow, ",", "\"", "\\");
} }
fclose($output); fclose($output);