X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FMember%2FPseudoConstant.php;h=455ff98c9e09c0efe6695bea852a3835ade91e2f;hb=6218310b8e33e74b01fa26ab025eef7bd7ee0148;hp=dad1efc157aadea4312eab58f31c1d1fb5705c23;hpb=32815eac44c3a63051b4f3d1ec2c25b88f33c245;p=civicrm-core.git diff --git a/CRM/Member/PseudoConstant.php b/CRM/Member/PseudoConstant.php index dad1efc157..455ff98c9e 100644 --- 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 = CRM_Utils_Array::value($id, self::$membershipStatus[$cacheKey]); + $value = self::$membershipStatus[$cacheKey][$id] ?? NULL; } else { $value = self::$membershipStatus[$cacheKey];