Skip to content

Commit

Permalink
Fix static analyzer issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaasuni committed Mar 18, 2024
1 parent eb1e822 commit 3cd687b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tcpdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 3cd687b

Please sign in to comment.