diff --git a/tcpdf.php b/tcpdf.php index cd020512..f9a48cb8 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -16389,6 +16389,8 @@ public function getHTMLFontUnits($val, $refsize=12, $parent_size=12, $defaultuni * @since 3.2.000 (2008-06-20) */ protected function getHtmlDomArray($html) { + if(empty($html)) + return array(); // array of CSS styles ( selector => properties). $css = array(); // get CSS array defined at previous call