We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 27d5118b authored by Evan Prodromou's avatar Evan Prodromou

fixup autosubscribe save

darcs-hash:20080720233712-84dde-dda5de6fec9d1d48f61139c1cce8a6e8aa2e0055.gz
parent 009a8efa
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment