projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cdfb82
)
Fix regression on contribution pages when CiviMember is not enabled
author
Jon Goldberg
<jon@megaphonetech.com>
Fri, 3 Mar 2023 19:37:50 +0000
(14:37 -0500)
committer
Jon Goldberg
<jon@megaphonetech.com>
Fri, 3 Mar 2023 19:37:50 +0000
(14:37 -0500)
CRM/Member/BAO/Membership.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Member/BAO/Membership.php
b/CRM/Member/BAO/Membership.php
index e6742c74dd70a9962b88b5049382d5ccba3d6481..15ef6231bb36f2eb323969f045c0ab1be508422c 100644
(file)
--- a/
CRM/Member/BAO/Membership.php
+++ b/
CRM/Member/BAO/Membership.php
@@
-2366,6
+2366,9
@@
WHERE {$whereClause}";
* @return array
*/
public static function getAllContactMembership($contactID, $isTest = FALSE, $onlyLifeTime = FALSE) : array {
+ if (!\CRM_Core_Component::isEnabled('CiviMember')) {
+ return [];
+ }
$contactMembershipType = [];
if (!$contactID) {
return $contactMembershipType;