From: stronk7 Date: Sun, 19 Mar 2006 11:13:16 +0000 (+0000) Subject: Notice killing... ;-) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8abebd1e5bdd16949816379f93df9ed00e28b574;p=moodle.git Notice killing... ;-) --- diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 0042e3bf30..f4b8088178 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -3850,7 +3850,7 @@ function email_to_user($user, $from, $subject, $messagetext, $messagehtml='', $a /// If we are running under Unicode and sitemailcharset or allowusermailcharset are set, convert the email /// encoding to the specified one - if ($CFG->unicodedb && (!empty($CFG->sitemailcharset) || !empty($CFG->allowusermailcharset))) { + if (!empty($CFG->unicodedb) && (!empty($CFG->sitemailcharset) || !empty($CFG->allowusermailcharset))) { /// Set it to site mail charset $charset = $CFG->sitemailcharset; /// Overwrite it with the user mail charset