diff options
author | thomascube <thomas@roundcube.net> | 2010-11-24 15:46:17 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2010-11-24 15:46:17 +0000 |
commit | f5e5eed330ed12e472d57bd497531dd0f2cf6938 (patch) | |
tree | ac1ce7ccd0783c170fefa9c98cfb9ad61837b7b8 /program/include | |
parent | e31afbbc9bcfe08b640123d0748f035405ee83b1 (diff) |
Add check to other cases, too
Diffstat (limited to 'program/include')
-rw-r--r-- | 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 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; } } |