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

Commit 733a8371 authored by Evan Prodromou's avatar Evan Prodromou

save emailpost flag

darcs-hash:20080720053431-84dde-2a46f89bcb18ecbb2b151f5d86a98fb016c851dd.gz
parent 59481135
......@@ -131,7 +131,8 @@ class EmailsettingsAction extends SettingsAction {
function save_preferences() {
$emailnotifysub = $this->boolean('emailnotifysub');
$emailpost = $this->boolean('emailpost');
$user = common_current_user();
assert(!is_null($user)); # should already be checked
......@@ -141,6 +142,7 @@ class EmailsettingsAction extends SettingsAction {
$original = clone($user);
$user->emailnotifysub = $emailnotifysub;
$user->emailpost = $emailpost;
$result = $user->update($original);
......
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