summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-20 19:37:12 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-20 19:37:12 -0400
commit27d5118b6d94b733df38a0da38eebe074ed02eb7 (patch)
treed07264e4c506dba56d676c04b5ccfb8d11c8ddeb /actions
parent009a8efaf1b075a728d943b6da33b5035e51c870 (diff)
fixup autosubscribe save
darcs-hash:20080720233712-84dde-dda5de6fec9d1d48f61139c1cce8a6e8aa2e0055.gz
Diffstat (limited to 'actions')
-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;
}
}