mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-12 01:38:46 +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
|
@ -73,16 +73,18 @@ class ReportsController extends Controller
|
||||||
|
|
||||||
// Write the headers to the CSV file
|
// Write the headers to the CSV file
|
||||||
fputcsv($csvFile, $headers);
|
fputcsv($csvFile, $headers);
|
||||||
|
|
||||||
// Write the domain data to the CSV file
|
// Write the domain data to the CSV file
|
||||||
foreach ($domains as $domain) {
|
if (!empty($domains) && is_iterable($domains)) {
|
||||||
fputcsv($csvFile, [
|
foreach ($domains as $domain) {
|
||||||
$domain['name'],
|
fputcsv($csvFile, [
|
||||||
$domain['crdate'],
|
$domain['name'],
|
||||||
$domain['exdate']
|
$domain['crdate'],
|
||||||
]);
|
$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
Reference in a new issue