Changeset a446829 in github


Ignore:
Timestamp:
Apr 15, 2010 8:21:03 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
a4c163f
Parents:
633a106
Message:
  • fix sorting of folders with capital letters
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_imap.php

    r70318e5 ra446829  
    25422542    function list_unsubscribed($root='') 
    25432543    { 
    2544         static $sa_unsubscribed; 
    2545      
    2546         if (is_array($sa_unsubscribed)) 
    2547             return $sa_unsubscribed; 
     2544        static $a_folders; 
     2545     
     2546        if (is_array($a_folders)) 
     2547            return $a_folders; 
    25482548       
    25492549        // retrieve list of folders from IMAP server 
     
    25522552        // modify names with root dir 
    25532553        foreach ($a_mboxes as $mbox_name) { 
    2554             $name = $this->mod_mailbox($mbox_name, 'out'); 
    2555             if (strlen($name)) 
     2554            if ($name = $this->mod_mailbox($mbox_name, 'out')) 
    25562555                $a_folders[] = $name; 
    25572556        } 
    25582557 
    25592558        // filter folders and sort them 
    2560         $sa_unsubscribed = $this->_sort_mailbox_list($a_folders); 
    2561         return $sa_unsubscribed; 
     2559        $a_folders = $this->_sort_mailbox_list($a_folders); 
     2560        return $a_folders; 
    25622561    } 
    25632562 
     
    35343533                $a_defaults[$p] = $folder; 
    35353534            else 
    3536                 $folders[$folder] = mb_strtolower(rcube_charset_convert($folder, 'UTF7-IMAP')); 
     3535                $folders[$folder] = rcube_charset_convert($folder, 'UTF7-IMAP'); 
    35373536        } 
    35383537 
Note: See TracChangeset for help on using the changeset viewer.