diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-12 16:07:51 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-12 16:07:51 +0000 |
commit | 15ce9011d6fdaf19176b7897f946ae0a2cc238d9 (patch) | |
tree | e37836802be6dcbbbd8f5b19e0130b10d5c0e8dc /engine/lib/entities.php | |
parent | 79de63cbd6829208816d4764347f9f74c14bf6b8 (diff) | |
download | elgg-15ce9011d6fdaf19176b7897f946ae0a2cc238d9.tar.gz elgg-15ce9011d6fdaf19176b7897f946ae0a2cc238d9.tar.bz2 |
Clear river items on entity delete
git-svn-id: https://code.elgg.org/elgg/trunk@2727 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r-- | engine/lib/entities.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index c6c0f6fb2..a85596d8a 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -1742,6 +1742,8 @@ $entity->clearMetadata();
$entity->clearAnnotations();
$entity->clearRelationships();
+ remove_from_river_by_subject($guid);
+ remove_from_river_by_object($guid);
$res = delete_data("DELETE from {$CONFIG->dbprefix}entities where guid={$guid}");
return $res;
|