mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
Stop php warning "Invalid foreach argument"
This commit is contained in:
parent
86f4886f1f
commit
c1fe53eccd
@ -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