From: Abhishek Jain Date: Sat, 8 Oct 2016 21:21:46 +0000 (+0530) Subject: fix style errors X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=965403bfd0795566169dd0af03a3f1581538a770;p=civicrm-core.git fix style errors --- 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';