From 15ce9011d6fdaf19176b7897f946ae0a2cc238d9 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 12 Feb 2009 16:07:51 +0000 Subject: Clear river items on entity delete git-svn-id: https://code.elgg.org/elgg/trunk@2727 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3