summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/profilesettings.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/actions/profilesettings.php b/actions/profilesettings.php
index 09b5b5abc..b703c8b2b 100644
--- a/actions/profilesettings.php
+++ b/actions/profilesettings.php
@@ -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;
}
}