Merge pull request #3026 from jrgensen/master
Fix php fatal error on monitoring/health/info when asking for json
This commit is contained in:
commit
905ea06f53
|
@ -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':
|
||||||
|
|
Loading…
Reference in New Issue