diff program/include/rcmail.php @ 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 b6a96bdd6b29
children 303b85d5b561
line wrap: on
line diff
--- a/program/include/rcmail.php	Wed Oct 08 09:42:21 2025 -0400
+++ b/program/include/rcmail.php	Thu Oct 09 11:31:41 2025 -0400
@@ -1334,7 +1334,7 @@
 
         $attrib += array('maxlength' => 100, 'realnames' => false, 'unreadwrap' => ' (%s)');
 
-        $type = $attrib['type'] ? $attrib['type'] : 'ul';
+        $type = ($attrib['type']??null) ?: 'ul';
         unset($attrib['type']);
 
         if ($type == 'ul' && !$attrib['id']) {
@@ -2184,7 +2184,7 @@
             $content .= $hint;
         }
 
-        if (rcube_utils::get_boolean($attrib['buttons'])) {
+        if (rcube_utils::get_boolean($attrib['buttons']??null)) {
             $button   = new html_inputfield(array('type' => 'button'));
             $content .= html::div('buttons',
                 $button->show($this->gettext('close'), array('class' => 'button', 'onclick' => "$('#{$attrib['id']}').hide()")) . ' ' .