Merge branch 'MDL-52938-master' of git://github.com/marinaglancy/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2016-02-09 00:30:02 +01:00
commit de0a98f8ef

View File

@ -47,7 +47,9 @@ if ($forumform->is_cancelled()) {
$user->maildigest = $data->maildigest;
$user->autosubscribe = $data->autosubscribe;
$user->trackforums = $data->trackforums;
if (!empty($CFG->forum_trackreadposts)) {
$user->trackforums = $data->trackforums;
}
user_update_user($user, false, false);
@ -57,7 +59,9 @@ if ($forumform->is_cancelled()) {
if ($USER->id == $user->id) {
$USER->maildigest = $data->maildigest;
$USER->autosubscribe = $data->autosubscribe;
$USER->trackforums = $data->trackforums;
if (!empty($CFG->forum_trackreadposts)) {
$USER->trackforums = $data->trackforums;
}
}
redirect($redirect);