fixup autosubscribe save
darcs-hash:20080720233712-84dde-dda5de6fec9d1d48f61139c1cce8a6e8aa2e0055.gz
This commit is contained in:
parent
009a8efaf1
commit
27d5118b6d
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user