Small warning fix in CP

This commit is contained in:
Pinga 2024-12-03 12:41:22 +02:00
parent 79288e0b04
commit 873272b80e

View file

@ -75,6 +75,7 @@ class ReportsController extends Controller
fputcsv($csvFile, $headers);
// Write the domain data to the CSV file
if (!empty($domains) && is_iterable($domains)) {
foreach ($domains as $domain) {
fputcsv($csvFile, [
$domain['name'],
@ -82,6 +83,7 @@ class ReportsController extends Controller
$domain['exdate']
]);
}
}
// Rewind the file pointer to the beginning of the file
fseek($csvFile, 0);