From: defacer Date: Fri, 4 Feb 2005 21:13:28 +0000 (+0000) Subject: Bugfix: don't send HTML digests to users who want simple text mail. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=379a42cb26cf86e9fdec0826f76bafd38509e838;p=moodle.git Bugfix: don't send HTML digests to users who want simple text mail. --- diff --git a/mod/forum/lib.php b/mod/forum/lib.php index f4811183cc..bc0bb8904f 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -541,6 +541,11 @@ function forum_cron () { } $posthtml .= ''; + 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!");