From f5e5eed330ed12e472d57bd497531dd0f2cf6938 Mon Sep 17 00:00:00 2001 From: thomascube Date: Wed, 24 Nov 2010 15:46:17 +0000 Subject: Add check to other cases, too --- program/include/rcube_imap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index 3fa24939c..212e8865e 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -3245,7 +3245,7 @@ class rcube_imap 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; } } -- cgit v1.2.3