aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 956b259af..bcdc6c687 100755
--- a/include/items.php
+++ b/include/items.php
@@ -4072,6 +4072,11 @@ function delete_item_lowlevel($item, $stage = DROPITEM_NORMAL) {
if($stage == DROPITEM_PHASE1)
return true;
+ $r = q("delete from term where otype = %d and oid = %d",
+ intval(TERM_OBJ_POST),
+ intval($item['id'])
+ );
+
q("delete from iconfig where iid = %d",
intval($item['id'])
);