summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/User.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/classes/User.php b/classes/User.php
index 96a7482ea..cef4769f3 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -101,7 +101,12 @@ class User extends DB_DataObject
return true;
}
$toupdate = implode(', ', $parts);
- $qry = 'UPDATE ' . $this->tableName() . ' SET ' . $toupdate .
+
+ $table = $this->tableName();
+ if(common_config('db','quote_identifiers')) {
+ $table = '"' . $table . '"';
+ }
+ $qry = 'UPDATE ' . $table . ' SET ' . $toupdate .
' WHERE id = ' . $this->id;
return $this->query($qry);
}