Closed charperimg closed 3 years ago
Thanks for opening an issue here. I think calling $csv->unparse($csv_data, $csv_columns)
directly is the better option for you.
If you decide against $csv->unparse()
: I believe that adding the is_null()
check might break some existing library users' code. Please set $csv->output_filename = NULL;
instead. Do this before calling $csv->output()
.
Calling $csv->output(NULL, $csv_data, $csv_columns) still prompts to download the file.
Issue is in /Src/Csv.php, line 445 for public function output
The above needed to be changed to
Which ensures the function does not set a filename if the filename has been set to null so as to not prompt the download.
Hope this helps. We are running php 7.4.8.