Fix exception on 404 in monitoring/show/

This commit is contained in:
Johannes Meyer 2014-04-09 08:44:51 +02:00
parent 82ca774331
commit 139023571f

View File

@ -157,7 +157,10 @@ class Monitoring_ShowController extends Controller
*/ */
protected function createTabs() protected function createTabs()
{ {
$object = $this->view->object; if (($object = $this->view->object) === null) {
return;
}
$tabs = $this->getTabs(); $tabs = $this->getTabs();
$params = array( $params = array(
'host' => $object->host_name, 'host' => $object->host_name,