summaryrefslogtreecommitdiff
path: root/modules/tag/controllers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-12-06 20:19:54 -0800
committerBharat Mediratta <bharat@menalto.com>2009-12-06 20:19:54 -0800
commit2132c9a96d923d48effc3fe8facedff4a4da3b13 (patch)
treebaea730cc1b7182f34c94a33d8caf7ded2780701 /modules/tag/controllers
parent5a7449f31574c7c548abe4244a6ba0993138e013 (diff)
Fix some database calls.
Diffstat (limited to 'modules/tag/controllers')
-rw-r--r--modules/tag/controllers/admin_tags.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tag/controllers/admin_tags.php b/modules/tag/controllers/admin_tags.php
index 6cd2f337..ed4a0366 100644
--- a/modules/tag/controllers/admin_tags.php
+++ b/modules/tag/controllers/admin_tags.php
@@ -51,7 +51,7 @@ class Admin_Tags_Controller extends Admin_Controller {
$form = tag::get_delete_form($tag);
if ($form->validate()) {
$name = $tag->name;
- Database::instance()->delete("items_tags", array("tag_id" => "$tag->id"));
+ db::build()->delete("items_tags")->where("tag_id", "=", $tag->id)->execute();
$tag->delete();
message::success(t("Deleted tag %tag_name", array("tag_name" => $name)));
log::success("tags", t("Deleted tag %tag_name", array("tag_name" => $name)));