Fix PHP notice when is_override is not set
authorMatthew Wire <mjw@mjwconsult.co.uk>
Sun, 10 May 2020 10:44:01 +0000 (11:44 +0100)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Mon, 11 May 2020 09:24:10 +0000 (10:24 +0100)
CRM/Member/Form/Membership.php

index 412b6d27ee871198fdef4f0062143e53b49503d2..85ca2681593064952e81751af9ff9093750b7014 100644 (file)
@@ -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);
   }
 
   /**