From 965403bfd0795566169dd0af03a3f1581538a770 Mon Sep 17 00:00:00 2001 From: Abhishek Jain Date: Sun, 9 Oct 2016 02:51:46 +0530 Subject: [PATCH] fix style errors --- CRM/Contact/BAO/GroupContact.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/CRM/Contact/BAO/GroupContact.php b/CRM/Contact/BAO/GroupContact.php index b2f6a84e20..d1c8d715f0 100644 --- a/CRM/Contact/BAO/GroupContact.php +++ b/CRM/Contact/BAO/GroupContact.php @@ -341,7 +341,7 @@ class CRM_Contact_BAO_GroupContact extends CRM_Contact_DAO_GroupContact { $onlyPublicGroups = FALSE, $excludeHidden = TRUE, $groupId = NULL, - $includeSmartGroups = FALSE + $includeSmartGroups = FALSE ) { if ($count) { $select = 'SELECT count(DISTINCT civicrm_group_contact.id)'; @@ -359,14 +359,12 @@ class CRM_Contact_BAO_GroupContact extends CRM_Contact_DAO_GroupContact { } $where = " WHERE contact_a.id = %1 AND civicrm_group.is_active = 1"; - if(!$includeSmartGroups){ - $where .= " AND saved_search_id IS NULL"; - } - + if (!$includeSmartGroups) { + $where .= " AND saved_search_id IS NULL"; + } if ($excludeHidden) { $where .= " AND civicrm_group.is_hidden = 0 "; } - $params = array(1 => array($contactId, 'Integer')); if (!empty($status)) { $where .= ' AND civicrm_group_contact.status = %2'; -- 2.25.1