summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-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 a0c7b159..5604cb50 100644
--- a/modules/tag/helpers/tag_event.php
+++ b/modules/tag/helpers/tag_event.php
@@ -52,7 +52,7 @@ class tag_event_Core {
$db = Database::instance();
$db->query("UPDATE `[tags]` SET `count` = `count` - 1 WHERE `count` > 0 " .
"AND `id` IN (SELECT `tag_id` from `[items_tags]` WHERE `item_id` = $item->id)");
- $dbs->query("DELETE FROM `tags` WHERE `count` = 0 AND `id` IN (" .
+ $db->query("DELETE FROM `[tags]` WHERE `count` = 0 AND `id` IN (" .
"SELECT `tag_id` from `[items_tags]` WHERE `item_id` = $item->id)");
$db->delete("items_tags", array("item_id" => "$item->id"));
}