From: jitendrapurohit Date: Thu, 28 Jul 2016 13:09:56 +0000 (+0530) Subject: minor fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b27a1338939255a33c0bd998ab09c0b5220dfa30;p=civicrm-core.git minor fix --- diff --git a/CRM/Custom/Form/Group.php b/CRM/Custom/Form/Group.php index b981bbaff7..bb6bd34da7 100644 --- a/CRM/Custom/Form/Group.php +++ b/CRM/Custom/Form/Group.php @@ -463,7 +463,7 @@ class CRM_Custom_Form_Group extends CRM_Core_Form { $subtypesToBeRemoved = array(); $subtypesToPreserve = $params['extends'][1]; // Don't remove any value if group is extended to -any- subtype - if (!empty(current($subtypesToPreserve))) { + if (!empty($subtypesToPreserve[0])) { $subtypesToBeRemoved = array_diff($this->_subtypes, array_intersect($this->_subtypes, $subtypesToPreserve)); } CRM_Contact_BAO_ContactType::deleteCustomRowsOfSubtype($this->_id, $subtypesToBeRemoved, $subtypesToPreserve);