summaryrefslogtreecommitdiff
path: root/modules/tag/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tag/helpers')
-rw-r--r--modules/tag/helpers/tag_event.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tag/helpers/tag_event.php b/modules/tag/helpers/tag_event.php
index 7192edec..47391355 100644
--- a/modules/tag/helpers/tag_event.php
+++ b/modules/tag/helpers/tag_event.php
@@ -54,7 +54,7 @@ class tag_event_Core {
"AND `id` IN (SELECT `tag_id` from `items_tags` WHERE `item_id` = $item->id)");
$db->query("DELETE FROM `tags` WHERE `count` = 0 AND `id` IN (" .
"SELECT `tag_id` from `items_tags` WHERE `item_id` = $item->id)");
- $db->query("DELETE FROM `items_tags` WHERE `item_id` = $item->id;");
+ $db->delete("items_tags", array("item_id" => "$item->id"));
}
}