forked from GNUsocial/gnu-social
use updateKeys() for updating the user
darcs-hash:20080622151611-34904-1d952df08b5247ab391bb76fd50d7b90498f0c96.gz
This commit is contained in:
@@ -68,12 +68,12 @@ class User extends DB_DataObject
|
||||
$parts = array();
|
||||
foreach (array('nickname', 'email') as $k) {
|
||||
if ($this->$k != $orig->$k) {
|
||||
$parts[] = $k . '=' . $this->_quote($this->$k);
|
||||
$parts[] = $k . ' = ' . $this->_quote($this->$k);
|
||||
}
|
||||
}
|
||||
if (count($parts) == 0) {
|
||||
# No changes
|
||||
return;
|
||||
return true;
|
||||
}
|
||||
$toupdate = implode(', ', $parts);
|
||||
$qry = 'UPDATE ' . $this->tableName() . ' SET ' . $toupdate .
|
||||
|
||||
Reference in New Issue
Block a user