diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-06 16:24:08 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-06 16:24:08 +0000 |
commit | 5254adc2f10ba7d18851570e87ed1fbce4649deb (patch) | |
tree | 8555d2bc4b7cce8677e816dce270db10e90e0921 /engine/lib/group.php | |
parent | b389316fdc5f334ed5154b0b5057e81d9e640135 (diff) | |
download | elgg-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/group.php')
-rw-r--r-- | engine/lib/group.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/engine/lib/group.php b/engine/lib/group.php index 05c4f1262..28f6eaa10 100644 --- a/engine/lib/group.php +++ b/engine/lib/group.php @@ -261,12 +261,10 @@ */
public function delete()
{
-
- if (!delete_group_entity($this->get('guid')))
- return false;
-
- return parent::delete();
-
+ if (parent::delete())
+ return delete_group_entity($this->get('guid')); + + return false;
}
|