Mercurial > hg > rc2
comparison program/lib/Roundcube/rcube_imap.php @ 27:c32b53434b47
more compensation for deprecated empty cases
| author | Charlie Root |
|---|---|
| date | Sun, 18 Jan 2026 14:20:29 -0500 |
| parents | e53add5ddac5 |
| children |
comparison
equal
deleted
inserted
replaced
| 25:bea5a38be938 | 27:c32b53434b47 |
|---|---|
| 623 * | 623 * |
| 624 * @return int Number of messages | 624 * @return int Number of messages |
| 625 */ | 625 */ |
| 626 public function count($folder='', $mode='ALL', $force=false, $status=true) | 626 public function count($folder='', $mode='ALL', $force=false, $status=true) |
| 627 { | 627 { |
| 628 if (!strlen($folder)) { | 628 if (empty($folder)) { |
| 629 $folder = $this->folder; | 629 $folder = $this->folder; |
| 630 } | 630 } |
| 631 | 631 |
| 632 return $this->countmessages($folder, $mode, $force, $status); | 632 return $this->countmessages($folder, $mode, $force, $status); |
| 633 } | 633 } |
| 1566 'folder' => $folder, | 1566 'folder' => $folder, |
| 1567 'search' => $search, | 1567 'search' => $search, |
| 1568 'charset' => $charset, | 1568 'charset' => $charset, |
| 1569 'sort_field' => $sort_field, | 1569 'sort_field' => $sort_field, |
| 1570 'threading' => $this->threading, | 1570 'threading' => $this->threading, |
| 1571 'result' => null, | |
| 1571 )); | 1572 )); |
| 1572 | 1573 |
| 1573 $folder = $plugin['folder']; | 1574 $folder = $plugin['folder']; |
| 1574 $search = $plugin['search']; | 1575 $search = $plugin['search']; |
| 1575 $charset = $plugin['charset']; | 1576 $charset = $plugin['charset']; |
| 4383 */ | 4384 */ |
| 4384 protected function clear_messagecount($folder, $mode = array()) | 4385 protected function clear_messagecount($folder, $mode = array()) |
| 4385 { | 4386 { |
| 4386 $a_folder_cache = $this->get_cache('messagecount'); | 4387 $a_folder_cache = $this->get_cache('messagecount'); |
| 4387 | 4388 |
| 4388 if (is_array($a_folder_cache[$folder])) { | 4389 if (isset($a_folder_cache[$folder]) && is_array($a_folder_cache[$folder])) { |
| 4389 if (!empty($mode)) { | 4390 if (!empty($mode)) { |
| 4390 foreach ((array) $mode as $key) { | 4391 foreach ((array) $mode as $key) { |
| 4391 unset($a_folder_cache[$folder][$key]); | 4392 unset($a_folder_cache[$folder][$key]); |
| 4392 } | 4393 } |
| 4393 } | 4394 } |
