mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'MDL-52938-master' of git://github.com/marinaglancy/moodle
This commit is contained in:
commit
de0a98f8ef
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user