Skip to content

Commit c6c328c

Browse files
Wrong default value when $table_el['old_cell_padding'] is missing
1 parent c838d7f commit c6c328c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tcpdf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20012,7 +20012,7 @@ protected function closeHTMLTagHandler($dom, $key, $cell, $maxbottomliney=0) {
2001220012
}
2001320013
}
2001420014
if (!$in_table_head) { // we are not inside a thead section
20015-
$this->cell_padding = isset($table_el['old_cell_padding']) ? $table_el['old_cell_padding'] : null;
20015+
$this->cell_padding = isset($table_el['old_cell_padding']) ? $table_el['old_cell_padding'] : array('T' => 0, 'R' => 0, 'B' => 0, 'L' => 0);
2001620016
// reset row height
2001720017
$this->resetLastH();
2001820018
if (($this->page == ($this->numpages - 1)) AND ($this->pageopen[$this->numpages])) {

0 commit comments

Comments
 (0)