Fix PHP 7.4 warning: "Creating default object from empty value"

pull/7075/head
Aleksander Machniak 5 years ago
parent 2348899a3f
commit 0132ff0d85

@ -751,6 +751,10 @@ class html_table extends html
$cell->attrib = $attr;
$cell->content = $cont;
if (!isset($this->rows[$this->rowindex])) {
$this->rows[$this->rowindex] = new stdClass;
}
$this->rows[$this->rowindex]->cells[$this->colindex] = $cell;
$this->colindex += max(1, intval($attr['colspan']));

Loading…
Cancel
Save