From 6bcfeffbae25d991e5ed756fd6a1f0730b091df1 Mon Sep 17 00:00:00 2001 From: alec Date: Wed, 29 Oct 2008 12:39:12 +0000 Subject: - Fix problem with numeric folder names (#1485527) git-svn-id: https://svn.roundcube.net/trunk@2021 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcube_imap.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'roundcubemail/program/include/rcube_imap.php') diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index e18c14c2e..7a8b00c1c 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/program/include/rcube_imap.php @@ -2669,13 +2669,15 @@ class rcube_imap // finally we must rebuild the list to move // subfolders of default folders to their place... // ...also do this for the rest of folders because - // asort() is not properly sorting case sensitive names + // asort() is not properly sorting case sensitive names + + // set the type of folder name variable (#1485527) while (list($key, $folder) = each($folders)) { - $a_out[] = $folder; + $a_out[] = (string) $folder; unset($folders[$key]); foreach ($folders as $idx => $f) { if (strpos($f, $folder.$delimiter) === 0) { - $a_out[] = $f; + $a_out[] = (string) $f; unset($folders[$idx]); } } -- cgit v1.2.3