comparison program/lib/Roundcube/rcube_imap.php @ 22:303b85d5b561

More cleaning up php8 Warnings/deprecations
author Charlie Root
date Wed, 15 Oct 2025 14:06:27 -0400
parents 73124dd49283
children e53add5ddac5
comparison
equal deleted inserted replaced
21:73124dd49283 22:303b85d5b561
330 * 3 - sorting field, string 330 * 3 - sorting field, string
331 * 4 - true if sorted, bool 331 * 4 - true if sorted, bool
332 */ 332 */
333 public function set_search_set($set) 333 public function set_search_set($set)
334 { 334 {
335 $set = (array)$set; 335 $set = (array) $set;
336 336
337 $this->search_string = $set[0]; 337 $this->search_string = $set[0] ?? null;
338 $this->search_set = $set[1]; 338 $this->search_set = $set[1] ?? null;
339 $this->search_charset = $set[2]; 339 $this->search_charset = $set[2] ?? null;
340 $this->search_sort_field = $set[3]; 340 $this->search_sort_field = $set[3] ?? null;
341 $this->search_sorted = $set[4]; 341 $this->search_sorted = $set[4] ?? null;
342 $this->search_threads = is_a($this->search_set, 'rcube_result_thread'); 342 $this->search_threads = is_a($this->search_set, 'rcube_result_thread');
343 343
344 if (is_a($this->search_set, 'rcube_result_multifolder')) { 344 if (is_a($this->search_set, 'rcube_result_multifolder')) {
345 $this->set_threading(false); 345 $this->set_threading(false);
346 } 346 }
347 } 347 }
348 348
349 /** 349 /**
350 * Return the saved search set as hash array 350 * Return the saved search set as hash array
351 * 351 *
3449 return true; 3449 return true;
3450 } 3450 }
3451 3451
3452 $key = $subscription ? 'subscribed' : 'existing'; 3452 $key = $subscription ? 'subscribed' : 'existing';
3453 3453
3454 if (is_array($this->icache[$key]) && in_array($folder, $this->icache[$key])) { 3454 if (is_array($this->icache[$key]??null) && in_array($folder, $this->icache[$key])) {
3455 return true; 3455 return true;
3456 } 3456 }
3457 3457
3458 if (!$this->check_connection()) { 3458 if (!$this->check_connection()) {
3459 return false; 3459 return false;