aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/actions/leave.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/actions/leave.php')
-rw-r--r--mod/groups/actions/leave.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/groups/actions/leave.php b/mod/groups/actions/leave.php
index 87f976b3e..6324b8f37 100644
--- a/mod/groups/actions/leave.php
+++ b/mod/groups/actions/leave.php
@@ -29,10 +29,10 @@
if ($group->leave($user))
system_message(elgg_echo("groups:left"));
else
- system_message(elgg_echo("groups:cantleave"));
+ register_error(elgg_echo("groups:cantleave"));
}
else
- system_message(elgg_echo("groups:cantleave"));
+ register_error(elgg_echo("groups:cantleave"));
forward($_SERVER['HTTP_REFERER']);
exit;