Mercurial > hg > rc2
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 16:1866b439e6d3 | 17:dd5ed6ef69c9 |
|---|---|
| 93 // maybe also register a shudown function which triggers | 93 // maybe also register a shudown function which triggers |
| 94 // shutdown functions of all plugin objects | 94 // shutdown functions of all plugin objects |
| 95 | 95 |
| 96 foreach ($this->plugins as $plugin) { | 96 foreach ($this->plugins as $plugin) { |
| 97 // ... task, request type and framed mode | 97 // ... task, request type and framed mode |
| 98 if (!$this->plugins_initialized[$plugin->ID] && !$this->filter($plugin)) { | 98 if (!($this->plugins_initialized[$plugin->ID]??null) && !$this->filter($plugin)) { |
| 99 $plugin->init(); | 99 $plugin->init(); |
| 100 $this->plugins_initialized[$plugin->ID] = $plugin; | 100 $this->plugins_initialized[$plugin->ID] = $plugin; |
| 101 } | 101 } |
| 102 } | 102 } |
| 103 | 103 |
| 440 $ret = call_user_func($this->handlers[$hook][$i], $args); | 440 $ret = call_user_func($this->handlers[$hook][$i], $args); |
| 441 if ($ret && is_array($ret)) { | 441 if ($ret && is_array($ret)) { |
| 442 $args = $ret + $args; | 442 $args = $ret + $args; |
| 443 } | 443 } |
| 444 | 444 |
| 445 if ($args['break']) { | 445 if ($args['break']??null) { |
| 446 break; | 446 break; |
| 447 } | 447 } |
| 448 } | 448 } |
| 449 } | 449 } |
| 450 | 450 |
