mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
monitoring: Don't throw exception manually in ShowController::contactAction()
This commit is contained in:
parent
4cd0259eb2
commit
3c9e67eb46
@ -49,14 +49,7 @@ class ShowController extends Controller
|
||||
|
||||
public function contactAction()
|
||||
{
|
||||
$contactName = $this->getParam('contact_name');
|
||||
|
||||
if (! $contactName) {
|
||||
throw new Zend_Controller_Action_Exception(
|
||||
$this->translate('The parameter `contact_name\' is required'),
|
||||
404
|
||||
);
|
||||
}
|
||||
$contactName = $this->params->getRequired('contact_name');
|
||||
|
||||
$query = $this->backend->select()->from('contact', array(
|
||||
'contact_name',
|
||||
|
Loading…
x
Reference in New Issue
Block a user