Changeset 4845a1e in github


Ignore:
Timestamp:
Sep 11, 2007 4:45:41 AM (6 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
532844b
Parents:
d7d6638
Message:

Fixed message search issues

Location:
program
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_imap.inc

    r5c69aa7 r4845a1e  
    288288    $this->search_subject = $subject; 
    289289    $this->search_string = $str; 
    290     $this->search_set = is_array($msgs) ? $msgs : NULL; 
     290    $this->search_set = (array)$msgs; 
    291291    $this->search_charset = $charset; 
    292292    } 
     
    440440       
    441441    // count search set 
    442     if ($this->search_set && $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); 
    444444 
    445445    $a_mailbox_cache = $this->get_cache('messagecount'); 
     
    523523 
    524524    // use saved message set 
    525     if ($this->search_set && $mailbox == $this->mailbox) 
     525    if ($this->search_string && $mailbox == $this->mailbox) 
    526526      return $this->_list_header_set($mailbox, $this->search_set, $page, $sort_field, $sort_order); 
    527527 
  • program/steps/mail/search.inc

    rf115416 r4845a1e  
    7979  // Get the headers 
    8080  $result_h = $IMAP->list_header_set($mbox, $result, 1, $_SESSION['sort_col'], $_SESSION['sort_order']); 
    81   $count = count($result_h); 
     81  $count = $IMAP->messagecount(); 
    8282 
    8383  // save search results in session 
Note: See TracChangeset for help on using the changeset viewer.