From: Evan Prodromou Date: Thu, 26 Jun 2008 18:37:21 +0000 (-0400) Subject: forgot to clone user X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fcc12459edd2b51af277e746417703678c8976de;p=quix0rs-gnu-social.git forgot to clone user darcs-hash:20080626183721-34904-7c03b34e911ddb0c4adba959402d49476be932c1.gz --- diff --git a/actions/imsettings.php b/actions/imsettings.php index 18666e1708..b76779a709 100644 --- a/actions/imsettings.php +++ b/actions/imsettings.php @@ -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;