From 3c9e67eb460c929ce02ce5d4e79f9f3158956ffe Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 28 Aug 2015 09:32:52 +0200 Subject: [PATCH] monitoring: Don't throw exception manually in ShowController::contactAction() --- .../application/controllers/ShowController.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/modules/monitoring/application/controllers/ShowController.php b/modules/monitoring/application/controllers/ShowController.php index 9afbaf835..ad57b7f9b 100644 --- a/modules/monitoring/application/controllers/ShowController.php +++ b/modules/monitoring/application/controllers/ShowController.php @@ -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',