diff program/steps/mail/show.inc @ 21:73124dd49283

More cleaning up php8 Warnings/deprecations, noticed that setting non-my-Dates mailboxes to sort on Date isn't sticky over ctrl-R
author Charlie Root
date Thu, 09 Oct 2025 11:31:41 -0400
parents 4681f974d28b
children
line wrap: on
line diff
--- a/program/steps/mail/show.inc	Wed Oct 08 09:42:21 2025 -0400
+++ b/program/steps/mail/show.inc	Thu Oct 09 11:31:41 2025 -0400
@@ -47,7 +47,7 @@
         $RCMAIL->config->set('prefer_html', $_SESSION['msg_formats'][$mbox_name.':'.$uid]);
     }
 
-    $MESSAGE = new rcube_message($msg_id, $mbox_name, intval($_GET['_safe']));
+    $MESSAGE = new rcube_message($msg_id, $mbox_name, intval($_GET['_safe']??null));
 
     // if message not found (wrong UID)...
     if (empty($MESSAGE->headers)) {
@@ -326,7 +326,7 @@
 {
     global $RCMAIL, $MESSAGE;
 
-    $placeholder = $attrib['placeholder'] ? $RCMAIL->output->abs_url($attrib['placeholder'], true) : null;
+    $placeholder = !empty($attrib['placeholder']) ? $RCMAIL->output->abs_url($attrib['placeholder'], true) : null;
     $placeholder = $RCMAIL->output->asset_url($placeholder ?: 'program/resources/blank.gif');
 
     if ($MESSAGE->sender) {