From f5e5eed330ed12e472d57bd497531dd0f2cf6938 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Wed, 24 Nov 2010 10:46:17 -0500
Subject: [PATCH] Add check to other cases, too

---
 program/include/rcube_imap.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index 3fa2493..212e886 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -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;
                         }
                     }

--
Gitblit v1.9.1