diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-12-28 23:10:05 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-12-28 23:10:05 -0800 |
commit | b42fcb9cda4dafdb9db86770f54965b3fb2fc7ab (patch) | |
tree | ef645fcb4a409cfd0c0eefcdb60c841b68d84258 /modules/tag | |
parent | 9f3c6e4bee9f2ccae04b7b241c07845b9f233cfd (diff) |
Use db::expr instead of "new Database_Expression". Resolves #1560.
Diffstat (limited to 'modules/tag')
-rw-r--r-- | modules/tag/helpers/tag.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tag/helpers/tag.php b/modules/tag/helpers/tag.php index 14d27c94..bcd3b0c0 100644 --- a/modules/tag/helpers/tag.php +++ b/modules/tag/helpers/tag.php @@ -118,7 +118,7 @@ class tag_Core { static function clear_all($item) { db::build() ->update("tags") - ->set("count", new Database_Expression("`count` - 1")) + ->set("count", db::expr("`count` - 1")) ->where("count", ">", 0) ->where("id", "IN", db::build()->select("tag_id")->from("items_tags")->where("item_id", "=", $item->id)) ->execute(); |