Fix PHP fatal error on monitoring/health/info when asking for JSON

Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
This commit is contained in:
Klaus Jrgensen 2017-10-17 15:29:00 +02:00 committed by Eric Lippmann
parent 37a9450a0f
commit fa9b2981d7
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class Controller extends IcingaWebController
'Content-Disposition',
'inline; filename=' . $this->getRequest()->getActionName() . '.json'
)
->appendBody(Json::encode($query->getQuery()->fetchAll()))
->appendBody(Json::encode($query->fetchAll()))
->sendResponse();
exit;
case 'csv':