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:
parent
37a9450a0f
commit
fa9b2981d7
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue