summaryrefslogtreecommitdiff
path: root/modules/tag/helpers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-02-27 00:19:12 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-02-27 00:19:12 +0000
commit2b1f68a6546b7a2743efaca2f224c1de90e17d1d (patch)
treea36fdd0648205c78b04e46ff448a59b59736f06a /modules/tag/helpers
parentd097b4fc027ff558bf5f580298c7bed3696dcd3d (diff)
Continue the journey of replacing raw sql with ORM or Database method
calls (Ticket #68)
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"));
}
}