diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-10-21 14:59:39 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-10-21 14:59:39 +0000 |
commit | fa161bd35911c6220fd45ff05357da689118b1b3 (patch) | |
tree | f423b9c77d7916c4c061b9078b9ade0969e1c246 /engine/lib/sites.php | |
parent | b6a056305ad04c220eae451037d3c885bf7f1e76 (diff) | |
download | elgg-fa161bd35911c6220fd45ff05357da689118b1b3.tar.gz elgg-fa161bd35911c6220fd45ff05357da689118b1b3.tar.bz2 |
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
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); } |