From 4b8d4dd5e31dc83232c630a5445c27f79e2f394f Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 18 Jul 2019 16:19:53 +0200 Subject: [PATCH] Avoid php warning --- addressbook/inc/class.addressbook_bo.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_bo.inc.php b/addressbook/inc/class.addressbook_bo.inc.php index 90eafb76e4..4549f0ceb8 100755 --- a/addressbook/inc/class.addressbook_bo.inc.php +++ b/addressbook/inc/class.addressbook_bo.inc.php @@ -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)