aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/objects.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-13 13:08:11 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-13 13:08:11 +0000
commit0b9e7e0e00273de31fc689a7ade222e9b0b5cbdd (patch)
tree7660beffd9ce7f0d6bc226b368d3e5410b1d6745 /engine/lib/objects.php
parent7f7decf9cb9084f6942ae9ea160f2e7c4d4a8b81 (diff)
downloadelgg-0b9e7e0e00273de31fc689a7ade222e9b0b5cbdd.tar.gz
elgg-0b9e7e0e00273de31fc689a7ade222e9b0b5cbdd.tar.bz2
Closes #676: Entity subtables now deleted on failed connections.
git-svn-id: https://code.elgg.org/elgg/trunk@2564 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/objects.php')
-rw-r--r--engine/lib/objects.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/objects.php b/engine/lib/objects.php
index b9643bc87..fc67c585c 100644
--- a/engine/lib/objects.php
+++ b/engine/lib/objects.php
@@ -291,7 +291,8 @@
if (trigger_elgg_event('create',$entity->type,$entity)) {
return $guid;
} else {
- delete_entity($guid);
+ $entity->delete();
+ //delete_entity($guid);
}
}
}