From 2984eeb8433c8984c73043cb7501ddfde1842f64 Mon Sep 17 00:00:00 2001 From: DemeritCowboy Date: Tue, 9 Apr 2019 20:42:18 -0400 Subject: [PATCH] fix array and notice --- CRM/Dedupe/BAO/Rule.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Dedupe/BAO/Rule.php b/CRM/Dedupe/BAO/Rule.php index ed0cdb6bc0..5bb117b688 100644 --- a/CRM/Dedupe/BAO/Rule.php +++ b/CRM/Dedupe/BAO/Rule.php @@ -109,8 +109,8 @@ class CRM_Dedupe_BAO_Rule extends CRM_Dedupe_DAO_Rule { case 'civicrm_address': $id = 'contact_id'; $on[] = 't1.location_type_id = t2.location_type_id'; - $innerJoinClauses[] = ['t1.location_type_id = t2.location_type_id']; - if ($this->params['civicrm_address']['location_type_id']) { + $innerJoinClauses[] = 't1.location_type_id = t2.location_type_id'; + if (!empty($this->params['civicrm_address']['location_type_id'])) { $locTypeId = CRM_Utils_Type::escape($this->params['civicrm_address']['location_type_id'], 'Integer', FALSE); if ($locTypeId) { $where[] = "t1.location_type_id = $locTypeId"; -- 2.25.1