diff --git a/addressbook/inc/class.addressbook_sql.inc.php b/addressbook/inc/class.addressbook_sql.inc.php index d7cb4b48a1..72d3dbac94 100644 --- a/addressbook/inc/class.addressbook_sql.inc.php +++ b/addressbook/inc/class.addressbook_sql.inc.php @@ -316,7 +316,7 @@ class addressbook_sql extends so_sql_cf $filter[] = $this->table_name.'.contact_owner='.(int)$filter['owner']; unset($filter['owner']); } - if (isset($criteria['owner'])) + if (is_array($criteria) && array_key_exists('owner',$criteria)) { $criteria[] = $this->table_name.'.contact_owner='.(int)$criteria['owner']; unset($criteria['owner']);