forgot to clone user

darcs-hash:20080626183721-34904-7c03b34e911ddb0c4adba959402d49476be932c1.gz
This commit is contained in:
Evan Prodromou 2008-06-26 14:37:21 -04:00
parent faf02d5126
commit fcc12459ed
1 changed files with 2 additions and 1 deletions

View File

@ -241,9 +241,10 @@ class ImsettingsAction extends SettingsAction {
}
$user->query('BEGIN');
$original = clone($user);
$user->jabber = NULL;
$result = $user->updateKeys($original);
if ($result === FALSE) {
if (!$result) {
common_log_db_error($user, 'UPDATE', __FILE__);
common_server_error(_t('Couldnt update user.'));
return;