diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-28 03:34:03 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-28 03:34:03 +0000 |
commit | ad56995bafffeca89c44b07cb4f25da7b36a1a99 (patch) | |
tree | 8a133d7735da8caf5eefc5b6963016ba8d7e779f /modules | |
parent | 1328755b1128260b24cf10e813efab9217447b33 (diff) |
Correct a type and missed a table name
Diffstat (limited to 'modules')
-rw-r--r-- | modules/tag/helpers/tag_event.php | 2 |
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")); } |