summaryrefslogtreecommitdiff
path: root/actions/imsettings.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlezvous.ca>2008-06-26 14:37:21 -0400
committerEvan Prodromou <evan@controlezvous.ca>2008-06-26 14:37:21 -0400
commitfcc12459edd2b51af277e746417703678c8976de (patch)
tree2ceccd931eb42b6b0d6ee4bde50081c2c47089d4 /actions/imsettings.php
parentfaf02d51260dad01399e967a0baab38cb4e0d7f8 (diff)
forgot to clone user
darcs-hash:20080626183721-34904-7c03b34e911ddb0c4adba959402d49476be932c1.gz
Diffstat (limited to 'actions/imsettings.php')
-rw-r--r--actions/imsettings.php3
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;