aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/group.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/group.php')
-rw-r--r--engine/lib/group.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/group.php b/engine/lib/group.php
index da5647663..aa21b0089 100644
--- a/engine/lib/group.php
+++ b/engine/lib/group.php
@@ -371,7 +371,7 @@
// Update succeeded, continue
$entity = get_entity($guid);
if (trigger_elgg_event('update',$entity->type,$entity)) {
- return true;
+ return $guid;
} else {
delete_entity($guid);
}
@@ -384,7 +384,7 @@
if ($result!==false) {
$entity = get_entity($guid);
if (trigger_elgg_event('create',$entity->type,$entity)) {
- return true;
+ return $guid;
} else {
delete_entity($guid);
}