diff --git a/include/mpdf/mpdf.php b/include/mpdf/mpdf.php index af04fa3b483c53e838bd8f4835d2443dbe073764..9c7fe98ad44cd7a9848a0890d6583bfeefd52710 100755 --- a/include/mpdf/mpdf.php +++ b/include/mpdf/mpdf.php @@ -31136,6 +31136,7 @@ function purify_utf8($html,$lo=true) { function purify_utf8_text($txt) { // For TEXT // Make sure UTF-8 string of characters + if ($txt === null) $txt = ''; if (!$this->is_utf8($txt)) { $this->Error("Text contains invalid UTF-8 character(s)"); } $txt = preg_replace("/\r/", "", $txt );