From 08b5ed1059c62d47faee0ed99df60a2e8d1090e6 Mon Sep 17 00:00:00 2001 From: madhavimalgaonkar Date: Fri, 28 Sep 2018 16:35:55 +0530 Subject: [PATCH] coding standard fixes --- CRM/Contact/BAO/Group.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/BAO/Group.php b/CRM/Contact/BAO/Group.php index 5b1a4c05dd..36edcea5ae 100644 --- a/CRM/Contact/BAO/Group.php +++ b/CRM/Contact/BAO/Group.php @@ -351,7 +351,7 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group { } // dev/core#287 Disable child groups if all parents are disabled. - if(!empty($params['id'])) { + if (!empty($params['id'])) { $allChildGroupIds = self::getChildGroupIds($params['id']); foreach ($allChildGroupIds as $childKey => $childValue) { $parentIds = CRM_Contact_BAO_GroupNesting::getParentGroupIds($childValue); @@ -359,7 +359,7 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group { 'id' => ['IN' => $parentIds], 'is_active' => 1, ]); - if (count($parentIds) == 1 || count($parentIds) > 1 && $activeParentsCount <= 1) { + if (count($parentIds) >= 1 && $activeParentsCount <= 1) { $setDisable = self::setIsActive($childValue, $params['is_active']); } } -- 2.25.1