From: Matthew Wire Date: Sun, 10 May 2020 10:44:01 +0000 (+0100) Subject: Fix PHP notice when is_override is not set X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f5c93de2da9dc0c107c092897074d792eced6994;p=civicrm-core.git Fix PHP notice when is_override is not set --- diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index 412b6d27ee..85ca268159 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -925,7 +925,7 @@ class CRM_Member_Form_Membership extends CRM_Member_Form { * or FALSE otherwise. */ private function convertIsOverrideValue() { - $this->_params['is_override'] = CRM_Member_StatusOverrideTypes::isOverridden($this->_params['is_override']); + $this->_params['is_override'] = CRM_Member_StatusOverrideTypes::isOverridden($this->_params['is_override'] ?? CRM_Member_StatusOverrideTypes::NO); } /**