Mercurial > hg > rc2
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 20:4aec5e272733 | 21:73124dd49283 |
|---|---|
| 45 } | 45 } |
| 46 else if (isset($_SESSION['msg_formats'][$mbox_name.':'.$uid])) { | 46 else if (isset($_SESSION['msg_formats'][$mbox_name.':'.$uid])) { |
| 47 $RCMAIL->config->set('prefer_html', $_SESSION['msg_formats'][$mbox_name.':'.$uid]); | 47 $RCMAIL->config->set('prefer_html', $_SESSION['msg_formats'][$mbox_name.':'.$uid]); |
| 48 } | 48 } |
| 49 | 49 |
| 50 $MESSAGE = new rcube_message($msg_id, $mbox_name, intval($_GET['_safe'])); | 50 $MESSAGE = new rcube_message($msg_id, $mbox_name, intval($_GET['_safe']??null)); |
| 51 | 51 |
| 52 // if message not found (wrong UID)... | 52 // if message not found (wrong UID)... |
| 53 if (empty($MESSAGE->headers)) { | 53 if (empty($MESSAGE->headers)) { |
| 54 rcmail_message_error($uid); | 54 rcmail_message_error($uid); |
| 55 } | 55 } |
| 324 | 324 |
| 325 function rcmail_message_contactphoto($attrib) | 325 function rcmail_message_contactphoto($attrib) |
| 326 { | 326 { |
| 327 global $RCMAIL, $MESSAGE; | 327 global $RCMAIL, $MESSAGE; |
| 328 | 328 |
| 329 $placeholder = $attrib['placeholder'] ? $RCMAIL->output->abs_url($attrib['placeholder'], true) : null; | 329 $placeholder = !empty($attrib['placeholder']) ? $RCMAIL->output->abs_url($attrib['placeholder'], true) : null; |
| 330 $placeholder = $RCMAIL->output->asset_url($placeholder ?: 'program/resources/blank.gif'); | 330 $placeholder = $RCMAIL->output->asset_url($placeholder ?: 'program/resources/blank.gif'); |
| 331 | 331 |
| 332 if ($MESSAGE->sender) { | 332 if ($MESSAGE->sender) { |
| 333 $photo_img = $RCMAIL->url(array( | 333 $photo_img = $RCMAIL->url(array( |
| 334 '_task' => 'addressbook', | 334 '_task' => 'addressbook', |
