monitoring/CLI: Fix error on CSV output
Signed-off-by: Eric Lippmann <eric.lippmann@netways.de> fixes #10921
This commit is contained in:
parent
5b7f4cd91a
commit
9f79f9a48b
|
@ -26,7 +26,7 @@ class Csv
|
|||
{
|
||||
$first = true;
|
||||
$csv = '';
|
||||
foreach ($this->query->getQuery()->fetchAll() as $row) {
|
||||
foreach ($this->query->fetchAll() as $row) {
|
||||
if ($first) {
|
||||
$csv .= implode(',', array_keys((array) $row)) . "\r\n";
|
||||
$first = false;
|
||||
|
|
Loading…
Reference in New Issue