From e10ac0608b9c5500395f306285cc96b33895a651 Mon Sep 17 00:00:00 2001 From: Johan Vervloet Date: Tue, 25 Nov 2014 14:09:39 +0100 Subject: [PATCH] CRM-15636 - I broke another unit test. Now fixed. ---------------------------------------- * CRM-15636: Using the API to create a price set for both events and contributions. https://issues.civicrm.org/jira/browse/CRM-15636 --- 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 d2412a2083..30efee54ad 100644 --- a/CRM/Price/BAO/PriceSet.php +++ b/CRM/Price/BAO/PriceSet.php @@ -67,7 +67,7 @@ class CRM_Price_BAO_PriceSet extends CRM_Price_DAO_PriceSet { if(empty($params['id']) && empty($params['name'])) { $params['name'] = CRM_Utils_String::munge($params['title'], '_', 242); } - if (!empty($params['extends'])) { + if (!empty($params['extends']) && is_array($params['extends'])) { $params['extends'] = CRM_Utils_Array::implodePadded($params['extends']); } $priceSetBAO = new CRM_Price_BAO_PriceSet(); -- 2.25.1