mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Fix showing a contact throwing an exception
This commit is contained in:
parent
ab8436dea8
commit
23c1097577
@ -37,7 +37,7 @@ class Monitoring_ShowController extends Controller
|
||||
public function init()
|
||||
{
|
||||
$this->view->object = MonitoredObject::fromParams($this->params);
|
||||
if ($this->view->object->fetch() === false) {
|
||||
if ($this->view->object && $this->view->object->fetch() === false) {
|
||||
throw new Zend_Controller_Action_Exception($this->translate('Host or service not found'));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user