diff options
Diffstat (limited to 'engine/lib/objects.php')
-rw-r--r-- | engine/lib/objects.php | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |