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

More cleaning up php8 Warnings/deprecations
author Charlie Root
date Wed, 15 Oct 2025 14:06:27 -0400
parents b6a96bdd6b29
children e53add5ddac5
line wrap: on
line diff
--- a/program/lib/Roundcube/rcube_message.php	Thu Oct 09 11:31:41 2025 -0400
+++ b/program/lib/Roundcube/rcube_message.php	Wed Oct 15 14:06:27 2025 -0400
@@ -78,6 +78,7 @@
      */
     function __construct($uid, $folder = null, $is_safe = false)
     {
+      $context = null;
         // decode combined UID-folder identifier
         if (preg_match('/^[0-9.]+-.+/', $uid)) {
             list($uid, $folder) = explode('-', $uid, 2);
@@ -104,7 +105,7 @@
             return;
         }
 
-        $this->set_safe($is_safe || $_SESSION['safe_messages'][$this->folder.':'.$uid]);
+        $this->set_safe($is_safe || ($_SESSION['safe_messages'][$this->folder.':'.$uid]??null));
         $this->opt = array(
             'safe'        => $this->is_safe,
             'prefer_html' => $this->app->config->get('prefer_html'),