summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-02-28 03:34:03 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-02-28 03:34:03 +0000
commitad56995bafffeca89c44b07cb4f25da7b36a1a99 (patch)
tree8a133d7735da8caf5eefc5b6963016ba8d7e779f
parent1328755b1128260b24cf10e813efab9217447b33 (diff)
Correct a type and missed a table name
-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"));
}