mirror of
https://github.com/moodle/moodle.git
synced 2025-02-08 17:11:49 +01:00
Bugfix: don't send HTML digests to users who want simple text mail.
This commit is contained in:
parent
de293f37ce
commit
379a42cb26
@ -541,6 +541,11 @@ function forum_cron () {
|
||||
}
|
||||
$posthtml .= '</body>';
|
||||
|
||||
if($userto->mailformat != 1) {
|
||||
// This user DOESN'T want to receive HTML
|
||||
$posthtml = '';
|
||||
}
|
||||
|
||||
if (!$mailresult = email_to_user($userto, $site->shortname, $postsubject, $posttext, $posthtml,
|
||||
'', '', $CFG->forum_replytouser)) {
|
||||
mtrace("ERROR!");
|
||||
|
Loading…
x
Reference in New Issue
Block a user