From 139023571f80b6df19e0dbee622596700428a3b9 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 9 Apr 2014 08:44:51 +0200 Subject: [PATCH] Fix exception on 404 in monitoring/show/ --- .../monitoring/application/controllers/ShowController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/monitoring/application/controllers/ShowController.php b/modules/monitoring/application/controllers/ShowController.php index bcf04d1d4..b695389a4 100644 --- a/modules/monitoring/application/controllers/ShowController.php +++ b/modules/monitoring/application/controllers/ShowController.php @@ -157,7 +157,10 @@ class Monitoring_ShowController extends Controller */ protected function createTabs() { - $object = $this->view->object; + if (($object = $this->view->object) === null) { + return; + } + $tabs = $this->getTabs(); $params = array( 'host' => $object->host_name,