Avoid php warning

This commit is contained in:
Hadi Nategh 2019-07-18 16:19:53 +02:00
parent 3f996bd0d7
commit 28174aaeb2

View File

@ -323,7 +323,7 @@ class addressbook_bo extends Api\Contacts
}
foreach ($filters as $filter)
{
foreach($this->search($criteria, array('account_id', 'contact_email', 'contact_email_home', 'contact_pubkey', 'contact_id'),
foreach((array)$this->search($criteria, array('account_id', 'contact_email', 'contact_email_home', 'contact_pubkey', 'contact_id'),
'', '', '', false, 'OR', false, $filter) as $contact)
{
// first check for file and second for pubkey field (LDAP, AD or old SQL)