diff --git a/tcpdf.php b/tcpdf.php index 60f93c41..45b677b7 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -16440,7 +16440,7 @@ protected function getHtmlDomArray($html) { ) ); - if(empty($html)) { + if($html === '' || $html === null) { return $dom; } // array of CSS styles ( selector => properties).