mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-14 16:46:59 +02:00
Small warning fix in CP
This commit is contained in:
parent
79288e0b04
commit
873272b80e
1 changed files with 10 additions and 8 deletions
|
@ -75,6 +75,7 @@ class ReportsController extends Controller
|
||||||
fputcsv($csvFile, $headers);
|
fputcsv($csvFile, $headers);
|
||||||
|
|
||||||
// Write the domain data to the CSV file
|
// Write the domain data to the CSV file
|
||||||
|
if (!empty($domains) && is_iterable($domains)) {
|
||||||
foreach ($domains as $domain) {
|
foreach ($domains as $domain) {
|
||||||
fputcsv($csvFile, [
|
fputcsv($csvFile, [
|
||||||
$domain['name'],
|
$domain['name'],
|
||||||
|
@ -82,6 +83,7 @@ class ReportsController extends Controller
|
||||||
$domain['exdate']
|
$domain['exdate']
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Rewind the file pointer to the beginning of the file
|
// Rewind the file pointer to the beginning of the file
|
||||||
fseek($csvFile, 0);
|
fseek($csvFile, 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue