make use of common_database_tablename()
This commit is contained in:
parent
f4117119ff
commit
b833b725a8
@ -103,10 +103,7 @@ class User extends Memcached_DataObject
|
|||||||
}
|
}
|
||||||
$toupdate = implode(', ', $parts);
|
$toupdate = implode(', ', $parts);
|
||||||
|
|
||||||
$table = $this->tableName();
|
$table = common_database_tablename($this->tableName());
|
||||||
if(common_config('db','quote_identifiers')) {
|
|
||||||
$table = '"' . $table . '"';
|
|
||||||
}
|
|
||||||
$qry = 'UPDATE ' . $table . ' SET ' . $toupdate .
|
$qry = 'UPDATE ' . $table . ' SET ' . $toupdate .
|
||||||
' WHERE id = ' . $this->id;
|
' WHERE id = ' . $this->id;
|
||||||
$orig->decache();
|
$orig->decache();
|
||||||
|
Loading…
Reference in New Issue
Block a user