From: Coleman Watts Date: Tue, 25 Nov 2014 03:08:25 +0000 (-0500) Subject: CRM-15613 - Fix access to undefined property error X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2d9943586a721b5bc2d0958d3c0f97d790cc0f64;p=civicrm-core.git CRM-15613 - Fix access to undefined property error --- 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;