[Svn] r4264 - trunk/roundcubemail/program/include

trac at roundcube.net trac at roundcube.net
Wed Nov 24 16:46:17 CET 2010


Author: thomasb
Date: 2010-11-24 09:46:17 -0600 (Wed, 24 Nov 2010)
New Revision: 4264

Modified:
   trunk/roundcubemail/program/include/rcube_imap.php
Log:
Add check to other cases, too

Modified: trunk/roundcubemail/program/include/rcube_imap.php
===================================================================
--- trunk/roundcubemail/program/include/rcube_imap.php	2010-11-24 15:44:05 UTC (rev 4263)
+++ trunk/roundcubemail/program/include/rcube_imap.php	2010-11-24 15:46:17 UTC (rev 4264)
@@ -3245,7 +3245,7 @@
             if (is_array($this->namespace['other'])) {
                 foreach ($this->namespace['other'] as $ns) {
                     foreach ((array)$ns as $root) {
-                        if (strpos($mbox_name, $root[0]) === 0) {
+                        if ($root[0] && strpos($mbox_name, $root[0]) === 0) {
                             return $mbox_name;
                         }
                     }

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list