monitoring: Don't throw exception manually in ShowController::contactAction()

This commit is contained in:
Eric Lippmann 2015-08-28 09:32:52 +02:00
parent 4cd0259eb2
commit 3c9e67eb46

View File

@ -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',