From 252bfe3bcad5a5940023abf316ff516872f4df41 Mon Sep 17 00:00:00 2001 From: thomasb Date: Wed, 24 Nov 2010 15:44:05 +0000 Subject: Fix php warnings; Courier doesn't like spaces appended to the EXPUNGE command git-svn-id: https://svn.roundcube.net/trunk@4263 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcube_imap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roundcubemail/program/include/rcube_imap.php') diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index 4c021802c..3fa24939c 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/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; } } -- cgit v1.2.3