]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
forgot to clone user
authorEvan Prodromou <evan@controlezvous.ca>
Thu, 26 Jun 2008 18:37:21 +0000 (14:37 -0400)
committerEvan Prodromou <evan@controlezvous.ca>
Thu, 26 Jun 2008 18:37:21 +0000 (14:37 -0400)
darcs-hash:20080626183721-34904-7c03b34e911ddb0c4adba959402d49476be932c1.gz

actions/imsettings.php

index 18666e1708e9cb691a0151bcc8e4356a6234fdef..b76779a7093ab6256b292d4dec2cc39ab0687b65 100644 (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;