diff --git a/modules/monitoring/application/controllers/DowntimesController.php b/modules/monitoring/application/controllers/DowntimesController.php index 28ba76cb40..3a79a9f400 100644 --- a/modules/monitoring/application/controllers/DowntimesController.php +++ b/modules/monitoring/application/controllers/DowntimesController.php @@ -9,13 +9,6 @@ use Icinga\Web\Url; use Icinga\Web\Widget\Tabextension\DashboardAction; - -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ - /** * Display detailed information about a downtime */ @@ -58,6 +51,7 @@ public function init() 'host_display_name', 'service_display_name' ))->addFilter($this->filter)->getQuery()->fetchAll(); + if (false === $this->downtimes) { throw new Zend_Controller_Action_Exception( $this->translate('Downtime not found') diff --git a/modules/monitoring/application/views/scripts/downtimes/show.phtml b/modules/monitoring/application/views/scripts/downtimes/show.phtml index 98999f0124..35edc04f41 100644 --- a/modules/monitoring/application/views/scripts/downtimes/show.phtml +++ b/modules/monitoring/application/views/scripts/downtimes/show.phtml @@ -29,5 +29,5 @@ ) ) ?> -

+