summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/module.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-12-28 23:10:05 -0800
committerBharat Mediratta <bharat@menalto.com>2010-12-28 23:10:05 -0800
commitb42fcb9cda4dafdb9db86770f54965b3fb2fc7ab (patch)
treeef645fcb4a409cfd0c0eefcdb60c841b68d84258 /modules/gallery/helpers/module.php
parent9f3c6e4bee9f2ccae04b7b241c07845b9f233cfd (diff)
Use db::expr instead of "new Database_Expression". Resolves #1560.
Diffstat (limited to 'modules/gallery/helpers/module.php')
-rw-r--r--modules/gallery/helpers/module.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/module.php b/modules/gallery/helpers/module.php
index 2b446daa..7c5578af 100644
--- a/modules/gallery/helpers/module.php
+++ b/modules/gallery/helpers/module.php
@@ -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();