diff options
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/group.php | 4 | ||||
-rw-r--r-- | engine/lib/objects.php | 4 | ||||
-rw-r--r-- | engine/lib/sites.php | 4 | ||||
-rw-r--r-- | engine/lib/users.php | 4 |
4 files changed, 8 insertions, 8 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); } diff --git a/engine/lib/objects.php b/engine/lib/objects.php index 1815ac717..aaf873b19 100644 --- a/engine/lib/objects.php +++ b/engine/lib/objects.php @@ -263,7 +263,7 @@ // Update succeeded, continue $entity = get_entity($guid); if (trigger_elgg_event('update',$entity->type,$entity)) { - return true; + return $guid; } else { $entity->delete(); } @@ -277,7 +277,7 @@ if ($result!==false) { $entity = get_entity($guid); if (trigger_elgg_event('create',$entity->type,$entity)) { - return true; + return $guid; } else { delete_entity($guid); } diff --git a/engine/lib/sites.php b/engine/lib/sites.php index b7af3a3c3..7b02424d5 100644 --- a/engine/lib/sites.php +++ b/engine/lib/sites.php @@ -277,7 +277,7 @@ // Update succeeded, continue $entity = get_entity($guid); if (trigger_elgg_event('update',$entity->type,$entity)) { - return true; + return $guid; } else { delete_entity($guid); } @@ -290,7 +290,7 @@ if ($result!==false) { $entity = get_entity($guid); if (trigger_elgg_event('create',$entity->type,$entity)) { - return true; + return $guid; } else { delete_entity($guid); } diff --git a/engine/lib/users.php b/engine/lib/users.php index fcddf252f..da7040039 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -363,7 +363,7 @@ // Update succeeded, continue $entity = get_entity($guid); if (trigger_elgg_event('update',$entity->type,$entity)) { - return true; + return $guid; } else { $entity->delete(); } @@ -376,7 +376,7 @@ if ($result!==false) { $entity = get_entity($guid); if (trigger_elgg_event('create',$entity->type,$entity)) { - return true; + return $guid; } else { delete_entity($guid); } |