From 1069895e8ae7c637607fe805857dfb53f2c72415 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 8 Aug 2016 16:55:36 +1000 Subject: [PATCH] remove redundant second check given that we are now throwing errors --- CRM/Contact/BAO/Group.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CRM/Contact/BAO/Group.php b/CRM/Contact/BAO/Group.php index f55505fd72..f9b1188d15 100644 --- a/CRM/Contact/BAO/Group.php +++ b/CRM/Contact/BAO/Group.php @@ -449,10 +449,8 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group { if (!empty($params['parents'])) { foreach ($params['parents'] as $parentId => $dnc) { - if (CRM_Utils_Type::validate($parentId, 'Integer')) { - if ($parentId && !CRM_Contact_BAO_GroupNesting::isParentChild($parentId, $group->id)) { - CRM_Contact_BAO_GroupNesting::add($parentId, $group->id); - } + if ($parentId && !CRM_Contact_BAO_GroupNesting::isParentChild($parentId, $group->id)) { + CRM_Contact_BAO_GroupNesting::add($parentId, $group->id); } } } -- 2.25.1