Browse Source

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

pull/7075/head
Aleksander Machniak 6 years ago
parent
commit
0132ff0d85
  1. 4
      program/lib/Roundcube/html.php

4
program/lib/Roundcube/html.php

@ -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