aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/objects.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-06 16:24:08 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-06 16:24:08 +0000
commit5254adc2f10ba7d18851570e87ed1fbce4649deb (patch)
tree8555d2bc4b7cce8677e816dce270db10e90e0921 /engine/lib/objects.php
parentb389316fdc5f334ed5154b0b5057e81d9e640135 (diff)
downloadelgg-5254adc2f10ba7d18851570e87ed1fbce4649deb.tar.gz
elgg-5254adc2f10ba7d18851570e87ed1fbce4649deb.tar.bz2
Reversed delete procedure on entities, parent now checked first before sub deleted. Any stubs left over will be handled by the garbage collector.
git-svn-id: https://code.elgg.org/elgg/trunk@3119 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/objects.php')
-rw-r--r--engine/lib/objects.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/objects.php b/engine/lib/objects.php
index c049c51d2..5d986675f 100644
--- a/engine/lib/objects.php
+++ b/engine/lib/objects.php
@@ -128,10 +128,10 @@
*/
public function delete()
{
- if (!delete_object_entity($this->get('guid')))
- return false;
+ if (parent::delete())
+ return delete_object_entity($this->get('guid'));//)
- return parent::delete();
+ return false;
}
/**