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; } }