Fix type error (new in master
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 1 Dec 2023 22:20:53 +0000 (11:20 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 1 Dec 2023 22:20:53 +0000 (11:20 +1300)
CRM/Contribute/Form/Contribution/Main.php

index 1cf1b8881bdee1c238930da8469b9c9d3a760e2f..b3120cf9132140782bb385e69bafe7fd2d772186 100644 (file)
@@ -1795,7 +1795,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu
           ->execute();
       }
     }
-    return $this->existingMemberships;
+    return $this->existingMemberships ?? [];
   }
 
   /**