Skip to content

Commit

Permalink
Simplify check for php 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaasuni committed Mar 18, 2024
1 parent 3cd687b commit 3ae08a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tcpdf.php
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 3ae08a3

Please sign in to comment.