From ade77f2b7f5e2fdb9ce46b5a644217afd6991e70 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Tue, 4 Jan 2022 19:33:42 -0500 Subject: [PATCH] fix array element access on null --- CRM/Member/Form/MembershipBlock.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])) { -- 2.25.1