mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Stop php warning "Invalid foreach argument"
This commit is contained in:
parent
dd32515d74
commit
72bd27587c
@ -219,7 +219,7 @@ class addressbook_bo extends Api\Contacts
|
||||
if (!$criteria) return 0;
|
||||
|
||||
$updated = 0;
|
||||
foreach($this->search($criteria, false, '', '', '', false, 'OR') as $contact)
|
||||
foreach((array)$this->search($criteria, false, '', '', '', false, 'OR') as $contact)
|
||||
{
|
||||
if ($contact['account_id'] && isset($keys[$contact['account_id']]))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user