diff program/lib/Roundcube/rcube_plugin_api.php @ 21:73124dd49283

More cleaning up php8 Warnings/deprecations, noticed that setting non-my-Dates mailboxes to sort on Date isn't sticky over ctrl-R
author Charlie Root
date Thu, 09 Oct 2025 11:31:41 -0400
parents b6a96bdd6b29
children
line wrap: on
line diff
--- a/program/lib/Roundcube/rcube_plugin_api.php	Wed Oct 08 09:42:21 2025 -0400
+++ b/program/lib/Roundcube/rcube_plugin_api.php	Thu Oct 09 11:31:41 2025 -0400
@@ -622,7 +622,7 @@
      */
     public function add_content($html, $container)
     {
-        $this->template_contents[$container] .= $html . "\n";
+      $this->template_contents[$container] = ($this->template_contents[$container]??'') . $html . "\n";
     }
 
     /**
@@ -654,7 +654,7 @@
     protected function template_container_hook($attrib)
     {
         $container = $attrib['name'];
-        return array('content' => ($attrib['content']??'') . $this->template_contents[$container]);
+        return array('content' => ($attrib['content']??'') . ($this->template_contents[$container]??''));
     }
 
     /**