comparison program/lib/Roundcube/rcube_plugin.php @ 19:b6a96bdd6b29

More cleaning up php8 Warnings/deprecations
author Charlie Root
date Wed, 08 Oct 2025 08:50:44 -0400
parents dd5ed6ef69c9
children
comparison
equal deleted inserted replaced
18:b631c1c7a3ce 19:b6a96bdd6b29
374 public function add_button($p, $container) 374 public function add_button($p, $container)
375 { 375 {
376 if ($this->api->output->type == 'html') { 376 if ($this->api->output->type == 'html') {
377 // fix relative paths 377 // fix relative paths
378 foreach (array('imagepas', 'imageact', 'imagesel') as $key) { 378 foreach (array('imagepas', 'imageact', 'imagesel') as $key) {
379 if ($p[$key]) { 379 if ($p[$key]??null) {
380 $p[$key] = $this->api->url . $this->resource_url($p[$key]); 380 $p[$key] = $this->api->url . $this->resource_url($p[$key]);
381 } 381 }
382 } 382 }
383 383
384 $this->api->add_content($this->api->output->button($p), $container); 384 $this->api->add_content($this->api->output->button($p), $container);