diff program/lib/Roundcube/rcube_plugin_api.php @ 17:dd5ed6ef69c9

Slowly cleaning up more php8 Warnings/deprecations
author Charlie Root
date Mon, 06 Oct 2025 12:20:32 -0400
parents abddb304201f
children b6a96bdd6b29
line wrap: on
line diff
--- a/program/lib/Roundcube/rcube_plugin_api.php	Mon Oct 06 10:34:51 2025 -0400
+++ b/program/lib/Roundcube/rcube_plugin_api.php	Mon Oct 06 12:20:32 2025 -0400
@@ -95,7 +95,7 @@
 
         foreach ($this->plugins as $plugin) {
             // ... task, request type and framed mode
-            if (!$this->plugins_initialized[$plugin->ID] && !$this->filter($plugin)) {
+	  if (!($this->plugins_initialized[$plugin->ID]??null) && !$this->filter($plugin)) {
                 $plugin->init();
                 $this->plugins_initialized[$plugin->ID] = $plugin;
             }
@@ -442,7 +442,7 @@
                     $args = $ret + $args;
                 }
 
-                if ($args['break']) {
+                if ($args['break']??null) {
                     break;
                 }
             }