killed a warning in xmlrpc from the kdepim list:

HTML-formated Errors (see below) are returned instead of well formed XML.
Is this already solved in a later Version of eGroupware  or is this a special
setting that causes this behaviour ?

kontact: ERROR: Result: <br />
<b>Warning</b>:  Invalid argument supplied for foreach() in
<b>/home/httpd/localhost/htdocs/egroupware/addressbook/inc/c
lass.boaddressbook.inc.php</b> on line <b>392</b><br />
This commit is contained in:
Ralf Becker 2004-07-12 20:02:15 +00:00
parent 05a7e6de3a
commit 19cbdcec1d

View File

@ -389,12 +389,16 @@
{
// $account is a group
unset($accounts[$key]);
foreach($GLOBALS['phpgw']->accounts->member($account) as $member)
$members = $GLOBALS['phpgw']->accounts->member($account);
if (is_array($members))
{
foreach($members as $member)
{
$accounts[] = $member['account_id'];
}
}
}
}
if ($type != 'all')
{
$accounts = array_unique($accounts); // remove doubles