From a0911e593fade17df54b2eb78f2b73eceb9c6e3f Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Thu, 26 Aug 2004 07:19:57 +0000 Subject: [PATCH] fix for Bug: [ 1016531 ] felamimail: Warning Invalid argument for foreach() --- felamimail/inc/class.bofelamimail.inc.php | 31 +++++++++++------------ 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/felamimail/inc/class.bofelamimail.inc.php b/felamimail/inc/class.bofelamimail.inc.php index 9617ef27a9..70c6db90f2 100644 --- a/felamimail/inc/class.bofelamimail.inc.php +++ b/felamimail/inc/class.bofelamimail.inc.php @@ -1,9 +1,9 @@ 'email settings', - 'url' => '/index.php', - 'extradata' => 'menuaction=emailadmin.uiuserdata.editUserData' - ); + if ($GLOBALS['phpgw_info']['server']['account_repository'] == "ldap") + { + $data = Array + ( + 'description' => 'email settings', + 'url' => '/index.php', + 'extradata' => 'menuaction=emailadmin.uiuserdata.editUserData' + ); - //Do not modify below this line - global $menuData; + //Do not modify below this line + global $menuData; - $menuData[] = $data; - } + $menuData[] = $data; + } } function appendMessage($_folderName, $_header, $_body, $_flags) @@ -493,9 +493,8 @@ is_array(imap_list($this->mbox,$mailboxString,'INBOX'))) { $folders['INBOX'] = 'INBOX'; - return $folders; } - return false; + return $folders; } }