monitoring/CLI: Fix error on CSV output

Signed-off-by: Eric Lippmann <eric.lippmann@netways.de>

fixes #10921
This commit is contained in:
Uwe Ebel 2016-01-01 15:56:36 +01:00 committed by Eric Lippmann
parent 5b7f4cd91a
commit 9f79f9a48b
1 changed files with 1 additions and 1 deletions

View File

@ -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;