summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2010-11-24 15:46:17 +0000
committerthomascube <thomas@roundcube.net>2010-11-24 15:46:17 +0000
commitf5e5eed330ed12e472d57bd497531dd0f2cf6938 (patch)
treeac1ce7ccd0783c170fefa9c98cfb9ad61837b7b8
parente31afbbc9bcfe08b640123d0748f035405ee83b1 (diff)
Add check to other cases, too
-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;
}
}