From 1ae5c4721cecb6be1fa1c0bebb506ed454a3e02d Mon Sep 17 00:00:00 2001 From: nicolaasuni Date: Mon, 18 Mar 2024 17:08:30 +0000 Subject: [PATCH] check empty condition --- tcpdf.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tcpdf.php b/tcpdf.php index 51e3c2ff..1df22465 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -16389,6 +16389,9 @@ 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