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

pull/6913/head
Aleksander Machniak 5 years ago
parent 48f0f11807
commit bdd1b94d78

@ -776,6 +776,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