mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-06-09 00:22:45 -04:00
monitoring: Don't throw exception manually in ShowController::contactAction()
This commit is contained in:
parent
4cd0259eb2
commit
3c9e67eb46
1 changed files with 1 additions and 8 deletions
|
|
@ -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…
Reference in a new issue