From fcc12459edd2b51af277e746417703678c8976de Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 26 Jun 2008 14:37:21 -0400 Subject: [PATCH] forgot to clone user darcs-hash:20080626183721-34904-7c03b34e911ddb0c4adba959402d49476be932c1.gz --- actions/imsettings.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5