From 0132ff0d85dffdc22b92a8ea32c5079c6e3a410a Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 4 Sep 2019 09:57:41 +0200 Subject: [PATCH] Fix PHP 7.4 warning: "Creating default object from empty value" --- program/lib/Roundcube/html.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/program/lib/Roundcube/html.php b/program/lib/Roundcube/html.php index f5ee63a6b..c27e8081e 100644 --- a/program/lib/Roundcube/html.php +++ b/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']));