comparison 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
comparison
equal deleted inserted replaced
20:4aec5e272733 21:73124dd49283
1332 { 1332 {
1333 static $a_mailboxes; 1333 static $a_mailboxes;
1334 1334
1335 $attrib += array('maxlength' => 100, 'realnames' => false, 'unreadwrap' => ' (%s)'); 1335 $attrib += array('maxlength' => 100, 'realnames' => false, 'unreadwrap' => ' (%s)');
1336 1336
1337 $type = $attrib['type'] ? $attrib['type'] : 'ul'; 1337 $type = ($attrib['type']??null) ?: 'ul';
1338 unset($attrib['type']); 1338 unset($attrib['type']);
1339 1339
1340 if ($type == 'ul' && !$attrib['id']) { 1340 if ($type == 'ul' && !$attrib['id']) {
1341 $attrib['id'] = 'rcmboxlist'; 1341 $attrib['id'] = 'rcmboxlist';
1342 } 1342 }
2182 if ($attrib['mode'] != 'smart') { 2182 if ($attrib['mode'] != 'smart') {
2183 $content = html::div(null, $content); 2183 $content = html::div(null, $content);
2184 $content .= $hint; 2184 $content .= $hint;
2185 } 2185 }
2186 2186
2187 if (rcube_utils::get_boolean($attrib['buttons'])) { 2187 if (rcube_utils::get_boolean($attrib['buttons']??null)) {
2188 $button = new html_inputfield(array('type' => 'button')); 2188 $button = new html_inputfield(array('type' => 'button'));
2189 $content .= html::div('buttons', 2189 $content .= html::div('buttons',
2190 $button->show($this->gettext('close'), array('class' => 'button', 'onclick' => "$('#{$attrib['id']}').hide()")) . ' ' . 2190 $button->show($this->gettext('close'), array('class' => 'button', 'onclick' => "$('#{$attrib['id']}').hide()")) . ' ' .
2191 $button->show($this->gettext('upload'), array('class' => 'button mainaction', 'onclick' => $event)) 2191 $button->show($this->gettext('upload'), array('class' => 'button mainaction', 'onclick' => $event))
2192 ); 2192 );