]> git.mjollnir.org Git - moodle.git/commitdiff
Bugfix: don't send HTML digests to users who want simple text mail.
authordefacer <defacer>
Fri, 4 Feb 2005 21:13:28 +0000 (21:13 +0000)
committerdefacer <defacer>
Fri, 4 Feb 2005 21:13:28 +0000 (21:13 +0000)
mod/forum/lib.php

index f4811183cc109658e6224038ffa8d12d4c2b233f..bc0bb8904f531bf21c6d874a20226134a8792796 100644 (file)
@@ -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!");