]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fixup autosubscribe save
authorEvan Prodromou <evan@prodromou.name>
Sun, 20 Jul 2008 23:37:12 +0000 (19:37 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sun, 20 Jul 2008 23:37:12 +0000 (19:37 -0400)
darcs-hash:20080720233712-84dde-dda5de6fec9d1d48f61139c1cce8a6e8aa2e0055.gz

actions/profilesettings.php

index 09b5b5abc3b427124c66412d5d91362e772d412b..b703c8b2b05980af0c3b559a46c5cfb2e14bfc20 100644 (file)
@@ -118,18 +118,19 @@ class ProfilesettingsAction extends SettingsAction {
                        }
                }
 
-               # XOR
+               # XXX: XOR
                
                if ($user->autosubscribe ^ $autosubscribe) {
+                       
                        $original = clone($user);
 
-                       $user->nickname = $nickname;
+                       $user->autosubscribe = $autosubscribe;
 
                        $result = $user->update($original);
 
                        if ($result === FALSE) {
                                common_log_db_error($user, 'UPDATE', __FILE__);
-                               common_server_error(_('Couldn\'t update user.'));
+                               common_server_error(_('Couldn\'t update user for autosubscribe.'));
                                return;
                        }
                }