mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +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()
|
public function contactAction()
|
||||||
{
|
{
|
||||||
$contactName = $this->getParam('contact_name');
|
$contactName = $this->params->getRequired('contact_name');
|
||||||
|
|
||||||
if (! $contactName) {
|
|
||||||
throw new Zend_Controller_Action_Exception(
|
|
||||||
$this->translate('The parameter `contact_name\' is required'),
|
|
||||||
404
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
$query = $this->backend->select()->from('contact', array(
|
$query = $this->backend->select()->from('contact', array(
|
||||||
'contact_name',
|
'contact_name',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user