diff options
Diffstat (limited to 'actions/imsettings.php')
-rw-r--r-- | actions/imsettings.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actions/imsettings.php b/actions/imsettings.php index 18666e170..b76779a70 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; |