From: demeritcowboy Date: Wed, 5 Jan 2022 00:33:42 +0000 (-0500) Subject: fix array element access on null X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ade77f2b7f5e2fdb9ce46b5a644217afd6991e70;p=civicrm-core.git fix array element access on null --- diff --git a/CRM/Member/Form/MembershipBlock.php b/CRM/Member/Form/MembershipBlock.php index 352ad1d0c4..2148be9f6e 100644 --- a/CRM/Member/Form/MembershipBlock.php +++ b/CRM/Member/Form/MembershipBlock.php @@ -37,7 +37,7 @@ class CRM_Member_Form_MembershipBlock extends CRM_Contribute_Form_ContributionPa if (isset($this->_id)) { $defaults = CRM_Member_BAO_Membership::getMembershipBlock($this->_id); } - $defaults['member_is_active'] = $defaults['is_active']; + $defaults['member_is_active'] = $defaults['is_active'] ?? FALSE; // Set Display Minimum Fee default to true if we are adding a new membership block if (!isset($defaults['id'])) {