aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/actions/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/actions/edit.php')
-rw-r--r--mod/groups/actions/edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/groups/actions/edit.php b/mod/groups/actions/edit.php
index 7965625e8..75ae1f80f 100644
--- a/mod/groups/actions/edit.php
+++ b/mod/groups/actions/edit.php
@@ -31,7 +31,7 @@
$group = new ElggGroup($group_guid); // load if present, if not create a new group
if (($group_guid) && (!$group->canEdit()))
{
- system_message(elgg_echo("groups:cantedit"));
+ register_error(elgg_echo("groups:cantedit"));
forward($_SERVER['HTTP_REFERER']);
exit;
@@ -48,7 +48,7 @@
// Validate create
if (!$group->title)
{
- system_message(elgg_echo("groups:notitle"));
+ register_error(elgg_echo("groups:notitle"));
forward($_SERVER['HTTP_REFERER']);
exit;