CRM-19438, fixed for memcached issue, since it returns string rather NULL
authorPradeep Nayak <pradpnayak@gmail.com>
Fri, 30 Sep 2016 21:50:15 +0000 (03:20 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Fri, 30 Sep 2016 21:50:15 +0000 (03:20 +0530)
----------------------------------------
* 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

index 4b2922c51c831110d5c953160eccd03108607978..9ef6cb2eb1323f1d43da9755f976f44ef8b447b6 100644 (file)
@@ -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];