Skip to content

Commit

Permalink
fixed issue if rowspan not a number
Browse files Browse the repository at this point in the history
  • Loading branch information
JagdishKuma authored and finwe committed Aug 31, 2023
1 parent 3bf5741 commit 1b82e75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tag/Td.php
Expand Up @@ -420,7 +420,7 @@ public function open($attr, &$ahtml, &$ihtml)
}
}

if (isset($attr['ROWSPAN']) && $attr['ROWSPAN'] > 1) {
if (isset($attr['ROWSPAN']) && preg_match('/^\d+$/', $attr['ROWSPAN']) && $attr['ROWSPAN'] > 1) {
$rs = $this->mpdf->cell[$this->mpdf->row][$this->mpdf->col]['rowspan'] = $attr['ROWSPAN'];
}

Expand Down

0 comments on commit 1b82e75

Please sign in to comment.