From 3cd687b6b1f9f3ab905716a91368ac90f89501cc Mon Sep 17 00:00:00 2001 From: nicolaasuni Date: Mon, 18 Mar 2024 16:45:02 +0000 Subject: [PATCH] Fix static analyzer issue --- tcpdf.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcpdf.php b/tcpdf.php index 3a3a4d98..0ba2b138 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -4470,7 +4470,7 @@ public function AddFont($family, $style='', $fontfile='', $subset='default') { // we are inside an XObject template $this->xobjects[$this->xobjid]['fonts'][$fontkey] = $this->numfonts; } - if (isset($diff) AND (!empty($diff))) { + if (!empty($diff)) { //Search existing encodings $d = 0; $nb = count($this->diffs); @@ -17237,7 +17237,7 @@ protected function unserializeTCPDFtag($data) { * @protected */ protected function allowedTCPDFtag($method) { - if (!defined('K_ALLOWED_TCPDF_TAGS') || empty(K_ALLOWED_TCPDF_TAGS)) { + if ((!defined('K_ALLOWED_TCPDF_TAGS')) OR (empty(K_ALLOWED_TCPDF_TAGS))) { return false; } return (strpos(K_ALLOWED_TCPDF_TAGS, '|'.$method.'|') !== false);