forked from extern/egroupware
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;
|
if (!$criteria) return 0;
|
||||||
|
|
||||||
$updated = 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']]))
|
if ($contact['account_id'] && isset($keys[$contact['account_id']]))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user