From a25e48e2daec522432fea3c37f3917366e2948d1 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 4 Aug 2024 11:11:22 +0200 Subject: [PATCH] Fix PHP5 compat. --- program/actions/mail/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/program/actions/mail/index.php b/program/actions/mail/index.php index 380a09713f9..8c58f72a039 100644 --- a/program/actions/mail/index.php +++ b/program/actions/mail/index.php @@ -932,17 +932,17 @@ public static function wash_html($html, $p, $cid_replaces = []) // clean HTML with washtml by Frederic Motte $wash_opts = [ 'show_washed' => false, - 'add_comments' => $p['add_comments'] ?? true, + 'add_comments' => isset($p['add_comments']) ? $p['add_comments'] : true, 'allow_remote' => $p['safe'], 'blocked_src' => $rcmail->output->asset_url('program/resources/blocked.gif'), 'charset' => RCUBE_CHARSET, 'cid_map' => $cid_replaces, 'html_elements' => ['body'], 'css_prefix' => $p['css_prefix'], - 'ignore_elements' => $p['ignore_elements'] ?? [], + 'ignore_elements' => isset($p['ignore_elements']) ? $p['ignore_elements'] : [], // internal configuration 'container_id' => $p['container_id'], - 'body_class' => $p['body_class'] ?? '', + 'body_class' => isset($p['body_class']) ? $p['body_class'] : '', ]; if (empty($p['inline_html'])) {