Mercurial > hg > rc1
comparison plugins/advanced_search/advanced_search.php @ 49:91f005a4f7e9
Slowly cleaning up more php8 Warnings/deprecations
| author | Charlie Root |
|---|---|
| date | Mon, 06 Oct 2025 12:19:59 -0400 |
| parents | c822d3ec1f93 |
| children |
comparison
equal
deleted
inserted
replaced
| 48:839c4d0fcb9f | 49:91f005a4f7e9 |
|---|---|
| 41 * | 41 * |
| 42 * @var array | 42 * @var array |
| 43 * @access private | 43 * @access private |
| 44 */ | 44 */ |
| 45 private $i18n_strings = array(); | 45 private $i18n_strings = array(); |
| 46 | 46 private $skin; |
| 47 /** | 47 /** |
| 48 * Initialisation of the plugin | 48 * Initialisation of the plugin |
| 49 * | 49 * |
| 50 * @access public | 50 * @access public |
| 51 * @return null | 51 * @return null |
| 1024 $showAvmbox = true; | 1024 $showAvmbox = true; |
| 1025 } | 1025 } |
| 1026 } | 1026 } |
| 1027 $uid_mboxes = $this->rcmail_js_message_list($messages, false, null, $showAvmbox, $avbox, $showMboxColumn); | 1027 $uid_mboxes = $this->rcmail_js_message_list($messages, false, null, $showAvmbox, $avbox, $showMboxColumn); |
| 1028 | 1028 |
| 1029 return $uid_mboxes; | 1029 return ($uid_mboxes) ?? array(); |
| 1030 } | 1030 } |
| 1031 | 1031 |
| 1032 public function save_search() | 1032 public function save_search() |
| 1033 { | 1033 { |
| 1034 $search_name = rcube_utils::get_input_value('search_name', rcube_utils::INPUT_GPC); | 1034 $search_name = rcube_utils::get_input_value('search_name', rcube_utils::INPUT_GPC); |
| 1081 $names = array(); | 1081 $names = array(); |
| 1082 foreach($prefs['advanced_search'] as $name => $search) { | 1082 foreach($prefs['advanced_search'] as $name => $search) { |
| 1083 $names[] = $name; | 1083 $names[] = $name; |
| 1084 } | 1084 } |
| 1085 | 1085 |
| 1086 return $names; | 1086 return $names ?? array(); |
| 1087 } | 1087 } |
| 1088 } | 1088 } |
