From 2d9943586a721b5bc2d0958d3c0f97d790cc0f64 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 24 Nov 2014 22:08:25 -0500 Subject: [PATCH] CRM-15613 - Fix access to undefined property error --- CRM/Group/Form/Edit.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CRM/Group/Form/Edit.php b/CRM/Group/Form/Edit.php index 031ca8b744..32b3dd1284 100644 --- a/CRM/Group/Form/Edit.php +++ b/CRM/Group/Form/Edit.php @@ -498,10 +498,7 @@ WHERE title = %1 if (count($parentGroupSelectValues) > 1) { if (CRM_Core_Permission::isMultisiteEnabled()) { - $required = empty($parentGroups) ? TRUE : FALSE; - $required = (($obj->_id && CRM_Core_BAO_Domain::isDomainGroup($obj->_id)) || - !isset($obj->_id) - ) ? FALSE : $required; + $required = !isset($obj->_id) || ($obj->_id && CRM_Core_BAO_Domain::isDomainGroup($obj->_id)) ? FALSE : empty($parentGroups); } else { $required = FALSE; -- 2.25.1