From fa9b2981d7f4f3b79067d15f7cf7b85a603c87c5 Mon Sep 17 00:00:00 2001 From: Klaus Jrgensen Date: Tue, 17 Oct 2017 15:29:00 +0200 Subject: [PATCH] Fix PHP fatal error on monitoring/health/info when asking for JSON Signed-off-by: Eric Lippmann --- modules/monitoring/library/Monitoring/Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/monitoring/library/Monitoring/Controller.php b/modules/monitoring/library/Monitoring/Controller.php index 7c41f3e5a..0d14b0858 100644 --- a/modules/monitoring/library/Monitoring/Controller.php +++ b/modules/monitoring/library/Monitoring/Controller.php @@ -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':