summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2010-11-24 15:44:05 +0000
committerthomascube <thomas@roundcube.net>2010-11-24 15:44:05 +0000
commite31afbbc9bcfe08b640123d0748f035405ee83b1 (patch)
tree15e56524a2f944c4bd364a9cf903e9fc3d1ab5e8 /program/include/rcube_imap.php
parente0a736609ca007f44b992510f96ae51c274fab13 (diff)
Fix php warnings; Courier doesn't like spaces appended to the EXPUNGE command
Diffstat (limited to 'program/include/rcube_imap.php')
-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 4c021802c..3fa24939c 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -3236,7 +3236,7 @@ class rcube_imap
if (is_array($this->namespace['shared'])) {
foreach ($this->namespace['shared'] 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;
}
}