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

View File

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