diff program/lib/Roundcube/html.php @ 22:303b85d5b561

More cleaning up php8 Warnings/deprecations
author Charlie Root
date Wed, 15 Oct 2025 14:06:27 -0400
parents 73124dd49283
children c32b53434b47
line wrap: on
line diff
--- a/program/lib/Roundcube/html.php	Thu Oct 09 11:31:41 2025 -0400
+++ b/program/lib/Roundcube/html.php	Wed Oct 15 14:06:27 2025 -0400
@@ -752,7 +752,7 @@
         $cell->content = $cont;
 
 	// make sure row object exists (#1489094)
-        if (!$this->rows[$this->rowindex]) {
+        if (empty($this->rows[$this->rowindex])) {
             $this->rows[$this->rowindex] = new stdClass;
         }
 
@@ -895,7 +895,7 @@
             }
 
             if ($r < $this->rowindex || count($row->cells)) {
-                $tbody .= self::tag($this->_row_tagname(), $row->attrib, $rowcontent, parent::$common_attrib);
+                $tbody .= self::tag($this->_row_tagname(), $row->attrib??null, $rowcontent, parent::$common_attrib);
             }
         }