From bd07f78d94ac591c2b273aa8812c1be5a799c690 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 20 May 2015 10:59:41 +0200 Subject: [PATCH] GroupController: Do not throw Zend_Controller_Action_Exception (404) Use Controller::httpNotFound() instead. refs #8826 --- application/controllers/GroupController.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/application/controllers/GroupController.php b/application/controllers/GroupController.php index aefcb6eac..ffaadd76a 100644 --- a/application/controllers/GroupController.php +++ b/application/controllers/GroupController.php @@ -135,10 +135,7 @@ class GroupController extends Controller if ($name !== null) { $config = Config::app('groups'); if (! $config->hasSection($name)) { - throw new Zend_Controller_Action_Exception( - sprintf($this->translate('User group backend "%s" not found'), $name), - 404 - ); + $this->httpNotFound(sprintf($this->translate('User group backend "%s" not found'), $name)); } else { $backend = UserGroupBackend::create($name, $config->getSection($name)); if ($interface && !$backend instanceof $interface) {