Merge pull request #19851 from liviuconcioiu/19850

Fix #19850 - Fix Undefined array key 4
This commit is contained in:
Maurício Meneghini Fauth 2025-09-13 13:46:08 -03:00 committed by GitHub
commit e5ce13fe3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -641,7 +641,7 @@ class Pdf extends PdfLib
foreach ($data as $col => $txt) {
$this->page = $currpage;
$this->setXY($l, $h);
if ($this->tablewidths[$col] > 0) {
if (isset($this->tablewidths[$col]) && $this->tablewidths[$col] > 0) {
$this->MultiCell(
$this->tablewidths[$col],
// phpcs:ignore Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps