From 57c409526195ebbd46b239f4af06ef199d001df9 Mon Sep 17 00:00:00 2001 From: Steve Clay Date: Mon, 19 Sep 2011 16:21:41 -0400 Subject: forward throws Exception if headers sent. fix for http://trac.elgg.org/ticket/3765 --- engine/lib/group.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'engine/lib/group.php') diff --git a/engine/lib/group.php b/engine/lib/group.php index e7b70fd10..7fa188cd6 100644 --- a/engine/lib/group.php +++ b/engine/lib/group.php @@ -276,9 +276,7 @@ function group_gatekeeper($forward = true) { if ($forward && $allowed == false) { register_error(elgg_echo('membershiprequired')); - if (!forward($url, 'member')) { - throw new SecurityException(elgg_echo('SecurityException:UnexpectedOutputInGatekeeper')); - } + forward($url, 'member'); } return $allowed; -- cgit v1.2.3