Cast to array to avoid warning on bogus data (#869)
This commit is contained in:
parent
f66d3dd7b1
commit
2015c6a23e
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ class kolab_format_distributionlist extends kolab_format
|
||||||
|
|
||||||
$seen = array();
|
$seen = array();
|
||||||
$members = new vectorcontactref;
|
$members = new vectorcontactref;
|
||||||
foreach ($object['member'] as $member) {
|
foreach ((array)$object['member'] as $member) {
|
||||||
if ($member['uid'])
|
if ($member['uid'])
|
||||||
$m = new ContactReference(ContactReference::UidReference, $member['uid']);
|
$m = new ContactReference(ContactReference::UidReference, $member['uid']);
|
||||||
else if ($member['email'])
|
else if ($member['email'])
|
||||||
|
@ -92,7 +92,7 @@ class kolab_format_distributionlist extends kolab_format
|
||||||
'member' => array(),
|
'member' => array(),
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach ($record['member'] as $member) {
|
foreach ((array)$record['member'] as $member) {
|
||||||
$object['member'][] = array(
|
$object['member'][] = array(
|
||||||
'email' => $member['smtp-address'],
|
'email' => $member['smtp-address'],
|
||||||
'name' => $member['display-name'],
|
'name' => $member['display-name'],
|
||||||
|
|
Loading…
Add table
Reference in a new issue