Mercurial > hg > rc2
diff program/steps/mail/get.inc @ 25:bea5a38be938
More cleaning up php8 Warnings/deprecations
| author | Charlie Root |
|---|---|
| date | Sat, 18 Oct 2025 12:24:31 -0400 |
| parents | 4681f974d28b |
| children | c32b53434b47 |
line wrap: on
line diff
--- a/program/steps/mail/get.inc Fri Oct 17 17:31:22 2025 -0400 +++ b/program/steps/mail/get.inc Sat Oct 18 12:24:31 2025 -0400 @@ -396,7 +396,7 @@ // similar code as in program/steps/mail/show.inc if (!empty($uid)) { $rcube->config->set('prefer_html', true); - $this->message = new rcube_message($uid, null, intval($_GET['_safe'])); + $this->message = new rcube_message($uid, null, intval(($_GET['_safe']??null))); if ($this->part = $this->message->mime_parts[$part_id]) { $this->filename = rcmail_attachment_name($this->part); @@ -422,7 +422,7 @@ // overwrite modified vars from plugin $this->mimetype = $plugin['mimetype']; - if ($plugin['body']) { + if (($plugin['body']??false)) { $this->body = $plugin['body']; $this->size = strlen($this->body); }
