Bugfix: don't send HTML digests to people who want plain text email.

This commit is contained in:
defacer
2005-02-04 21:15:38 +00:00
parent 20caf128b9
commit 3081fefaad
+5
View File
@@ -496,6 +496,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!");