Merge pull request #3026 from jrgensen/master

Fix php fatal error on monitoring/health/info when asking for json
This commit is contained in:
lippserd 2017-11-10 11:30:07 +01:00 committed by GitHub
commit 905ea06f53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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':