Use db::expr instead of "new Database_Expression". Resolves #1560.

This commit is contained in:
Bharat Mediratta
2010-12-28 23:10:05 -08:00
parent 9f3c6e4bee
commit b42fcb9cda
10 changed files with 24 additions and 24 deletions

View File

@@ -488,7 +488,7 @@ class module_Core {
static function incr_var($module_name, $name, $increment=1) {
db::build()
->update("vars")
->set("value", new Database_Expression("`value` + $increment"))
->set("value", db::expr("`value` + $increment"))
->where("module_name", "=", $module_name)
->where("name", "=", $name)
->execute();