From 1a6a3cbabc9c16470823c9996dd9a85db8220f34 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 fcb7b61cb4..a470843154 100644 --- a/CRM/Contact/BAO/Group.php +++ b/CRM/Contact/BAO/Group.php @@ -456,10 +456,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