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