Skip to content

Commit

Permalink
Fix PHP5 compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Aug 4, 2024
1 parent 36e747b commit a25e48e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions program/actions/mail/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])) {
Expand Down

0 comments on commit a25e48e

Please sign in to comment.