fix for Bug: [ 1016531 ] felamimail: Warning Invalid argument for foreach()

This commit is contained in:
Lars Kneschke 2004-08-26 07:19:57 +00:00
parent 5f70299d28
commit a0911e593f

View File

@ -1,9 +1,9 @@
<?php <?php
/***************************************************************************\ /***************************************************************************\
* phpGroupWare - FeLaMiMail * * eGroupWare - FeLaMiMail *
* http://www.linux-at-work.de * * http://www.linux-at-work.de *
* http://www.phpgw.de * * http://www.phpgw.de *
* http://www.phpgroupware.org * * http://www.egroupware.org *
* Written by : Lars Kneschke [lkneschke@linux-at-work.de] * * Written by : Lars Kneschke [lkneschke@linux-at-work.de] *
* ------------------------------------------------- * * ------------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it * * This program is free software; you can redistribute it and/or modify it *
@ -107,20 +107,20 @@
function adminMenu() function adminMenu()
{ {
if ($GLOBALS['phpgw_info']['server']['account_repository'] == "ldap") if ($GLOBALS['phpgw_info']['server']['account_repository'] == "ldap")
{ {
$data = Array $data = Array
( (
'description' => 'email settings', 'description' => 'email settings',
'url' => '/index.php', 'url' => '/index.php',
'extradata' => 'menuaction=emailadmin.uiuserdata.editUserData' 'extradata' => 'menuaction=emailadmin.uiuserdata.editUserData'
); );
//Do not modify below this line //Do not modify below this line
global $menuData; global $menuData;
$menuData[] = $data; $menuData[] = $data;
} }
} }
function appendMessage($_folderName, $_header, $_body, $_flags) function appendMessage($_folderName, $_header, $_body, $_flags)
@ -493,9 +493,8 @@
is_array(imap_list($this->mbox,$mailboxString,'INBOX'))) is_array(imap_list($this->mbox,$mailboxString,'INBOX')))
{ {
$folders['INBOX'] = 'INBOX'; $folders['INBOX'] = 'INBOX';
return $folders;
} }
return false; return $folders;
} }
} }