summaryrefslogtreecommitdiff
path: root/core/helpers/module.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-02-27 21:07:18 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-02-27 21:07:18 +0000
commitbd15853708ae73ee69220738a061e10d015d7fb9 (patch)
treefacfbd5b08e3cbb8e7fa2b4adf433b54d4c0c5bc /core/helpers/module.php
parent0b9fe18a6bf4036a05db7f9479d7b55d3fe5c782 (diff)
This implements table prefix for all the queries in core, user, exif,
tag, search, comment and notification modules (Ticket #68)
Diffstat (limited to 'core/helpers/module.php')
-rw-r--r--core/helpers/module.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/helpers/module.php b/core/helpers/module.php
index 23e90a3c..1bc8214f 100644
--- a/core/helpers/module.php
+++ b/core/helpers/module.php
@@ -241,7 +241,7 @@ class module_Core {
*/
static function incr_var($module_name, $name, $increment=1) {
Database::instance()->query(
- "UPDATE `vars` SET `value` = `value` + $increment " .
+ "UPDATE `[vars]` SET `value` = `value` + $increment " .
"WHERE `module_name` = '$module_name' " .
"AND `name` = '$name'");
}