mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +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()
|
public function init()
|
||||||
{
|
{
|
||||||
$this->view->object = MonitoredObject::fromParams($this->params);
|
$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'));
|
throw new Zend_Controller_Action_Exception($this->translate('Host or service not found'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user