From 3ae08a3b9a679ade6b8a06f541deeaea6ab68612 Mon Sep 17 00:00:00 2001 From: nicolaasuni Date: Mon, 18 Mar 2024 16:52:39 +0000 Subject: [PATCH] Simplify check for php 5.3 --- tcpdf.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tcpdf.php b/tcpdf.php index 0ba2b138..51e3c2ff 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -17237,10 +17237,10 @@ protected function unserializeTCPDFtag($data) { * @protected */ protected function allowedTCPDFtag($method) { - if ((!defined('K_ALLOWED_TCPDF_TAGS')) OR (empty(K_ALLOWED_TCPDF_TAGS))) { - return false; + if (defined('K_ALLOWED_TCPDF_TAGS')) { + return (strpos(K_ALLOWED_TCPDF_TAGS, '|'.$method.'|') !== false); } - return (strpos(K_ALLOWED_TCPDF_TAGS, '|'.$method.'|') !== false); + return false; } /**