summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_imap.php2
1 files changed, 1 insertions, 1 deletions
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;
}
}