From bdd1b94d7853fa64dd29df3054a66894219ff0c9 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 c7fb3f9e2..4f282df4b 100644 --- a/program/lib/Roundcube/html.php +++ b/program/lib/Roundcube/html.php @@ -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']));