projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #17298 from demeritcowboy/activity-attachment-delete
[civicrm-core.git]
/
CRM
/
Member
/
PseudoConstant.php
diff --git
a/CRM/Member/PseudoConstant.php
b/CRM/Member/PseudoConstant.php
index dad1efc157aadea4312eab58f31c1d1fb5705c23..455ff98c9e09c0efe6695bea852a3835ade91e2f 100644
(file)
--- a/
CRM/Member/PseudoConstant.php
+++ b/
CRM/Member/PseudoConstant.php
@@
-96,7
+96,7
@@
class CRM_Member_PseudoConstant extends CRM_Core_PseudoConstant {
$value = NULL;
if ($id) {
$value = NULL;
if ($id) {
- $value =
CRM_Utils_Array::value($id, self::$membershipStatus[$cacheKey])
;
+ $value =
self::$membershipStatus[$cacheKey][$id] ?? NULL
;
}
else {
$value = self::$membershipStatus[$cacheKey];
}
else {
$value = self::$membershipStatus[$cacheKey];