Notice killing... ;-)

This commit is contained in:
stronk7 2006-03-19 11:10:25 +00:00
parent 570c30aaa0
commit a848411a3b

View File

@ -1155,7 +1155,7 @@ class PHPMailer
/// Start Moodle Hack - if we are running under unicodedb, we'll try our own
/// encode_header code that's multibyte-safe
global $CFG;
if ($CFG->unicodedb) {
if (!empty($CFG->unicodedb)) {
$textlib = textlib_get_instance();
return $textlib->encode_mimeheader($str, $this->CharSet);
}