forgot to clone user
darcs-hash:20080626183721-34904-7c03b34e911ddb0c4adba959402d49476be932c1.gz
This commit is contained in:
parent
faf02d5126
commit
fcc12459ed
@ -241,9 +241,10 @@ class ImsettingsAction extends SettingsAction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$user->query('BEGIN');
|
$user->query('BEGIN');
|
||||||
|
$original = clone($user);
|
||||||
$user->jabber = NULL;
|
$user->jabber = NULL;
|
||||||
$result = $user->updateKeys($original);
|
$result = $user->updateKeys($original);
|
||||||
if ($result === FALSE) {
|
if (!$result) {
|
||||||
common_log_db_error($user, 'UPDATE', __FILE__);
|
common_log_db_error($user, 'UPDATE', __FILE__);
|
||||||
common_server_error(_t('Couldnt update user.'));
|
common_server_error(_t('Couldnt update user.'));
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user