From fa161bd35911c6220fd45ff05357da689118b1b3 Mon Sep 17 00:00:00 2001 From: marcus Date: Tue, 21 Oct 2008 14:59:39 +0000 Subject: Closes #457: Now returns $guid on success, false on fail git-svn-id: https://code.elgg.org/elgg/trunk@2288 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/objects.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/lib/objects.php') 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); } -- cgit v1.2.3