Changeset 4845a1e in github
- Timestamp:
- Sep 11, 2007 4:45:41 AM (6 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 532844b
- Parents:
- d7d6638
- Location:
- program
- Files:
-
- 2 edited
-
include/rcube_imap.inc (modified) (3 diffs)
-
steps/mail/search.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
program/include/rcube_imap.inc
r5c69aa7 r4845a1e 288 288 $this->search_subject = $subject; 289 289 $this->search_string = $str; 290 $this->search_set = is_array($msgs) ? $msgs : NULL;290 $this->search_set = (array)$msgs; 291 291 $this->search_charset = $charset; 292 292 } … … 440 440 441 441 // count search set 442 if ($this->search_s et&& $mailbox == $this->mailbox && $mode == 'ALL')443 return count( $this->search_set);442 if ($this->search_string && $mailbox == $this->mailbox && $mode == 'ALL') 443 return count((array)$this->search_set); 444 444 445 445 $a_mailbox_cache = $this->get_cache('messagecount'); … … 523 523 524 524 // use saved message set 525 if ($this->search_s et&& $mailbox == $this->mailbox)525 if ($this->search_string && $mailbox == $this->mailbox) 526 526 return $this->_list_header_set($mailbox, $this->search_set, $page, $sort_field, $sort_order); 527 527 -
program/steps/mail/search.inc
rf115416 r4845a1e 79 79 // Get the headers 80 80 $result_h = $IMAP->list_header_set($mbox, $result, 1, $_SESSION['sort_col'], $_SESSION['sort_order']); 81 $count = count($result_h);81 $count = $IMAP->messagecount(); 82 82 83 83 // save search results in session
Note: See TracChangeset
for help on using the changeset viewer.
