diff program/lib/Roundcube/html.php @ 11:aff04b06b685 default tip

various small fixes from upgrades to PHP and/or hangover from fix to apt-get overwrite at beginning of the year somehow
author Charlie Root
date Sun, 26 Jan 2025 13:09:03 -0500
parents 4681f974d28b
children
line wrap: on
line diff
--- a/program/lib/Roundcube/html.php	Mon May 11 16:56:46 2020 -0400
+++ b/program/lib/Roundcube/html.php	Sun Jan 26 13:09:03 2025 -0500
@@ -751,7 +751,12 @@
         $cell->attrib  = $attr;
         $cell->content = $cont;
 
-        $this->rows[$this->rowindex]->cells[$this->colindex] = $cell;
+	// make sure row object exists (#1489094)
+        if (!$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']));
 
         if ($this->attrib['cols'] && $this->colindex >= $this->attrib['cols']) {