From 982f1e4768c1e2e5f2db0f70f372e62654211037 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Sat, 1 Oct 2016 03:20:15 +0530 Subject: [PATCH] CRM-19438, fixed for memcached issue, since it returns string rather NULL ---------------------------------------- * CRM-19438: Entries in financial item not recorded properly when created via offline Membership form https://issues.civicrm.org/jira/browse/CRM-19438 --- CRM/Price/BAO/PriceSet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Price/BAO/PriceSet.php b/CRM/Price/BAO/PriceSet.php index 4b2922c51c..9ef6cb2eb1 100644 --- a/CRM/Price/BAO/PriceSet.php +++ b/CRM/Price/BAO/PriceSet.php @@ -1009,7 +1009,7 @@ WHERE id = %1"; public static function getCachedPriceSetDetail($priceSetID) { $cacheKey = __CLASS__ . __FUNCTION__ . '_' . $priceSetID; $cache = CRM_Utils_Cache::singleton(); - $values = (array) $cache->get($cacheKey); + $values = $cache->get($cacheKey); if (empty($values)) { $data = self::getSetDetail($priceSetID); $values = $data[$priceSetID]; -- 2.25.1