alecpl
2008-08-05 f219a20fff1fa876403afeb4acf130714264609f
#1485229: fixed mailboxlist sorting for folder names with upper case


1 files modified
6 ■■■■ changed files
program/include/rcube_imap.php 6 ●●●● patch | view | raw | blame | history
program/include/rcube_imap.php
@@ -2539,11 +2539,12 @@
    $folders = array_merge($a_defaults, array_keys($folders));
    // finally we must rebuild the list to move 
    // subfolders of default folders to their place
    // subfolders of default folders to their place...
    // ...also do this for the rest of folders because
    // asort() is not properly sorting case sensitive names
    while (list($key, $folder) = each($folders)) {
      $a_out[] = $folder;
      unset($folders[$key]);
      if (in_array(strtolower($folder), $this->default_folders_lc)) {
    foreach ($folders as $idx => $f) {
      if (strpos($f, $folder.$delimiter) === 0) {
            $a_out[] = $f;
@@ -2551,7 +2552,6 @@
        }
      }
    reset($folders);  
    }
      }
    return $a_out;