From f4fd225b924135a238f3d295f5d0953ba83fd4bf Mon Sep 17 00:00:00 2001 From: yashodha Date: Mon, 25 Apr 2016 12:21:15 +0530 Subject: [PATCH] CRM-18450 : dmaster notice error ---------------------------------------- * CRM-18450: dmaster notice error https://issues.civicrm.org/jira/browse/CRM-18450 --- 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 c9a485a653..4eda1266a7 100644 --- a/CRM/Price/BAO/PriceSet.php +++ b/CRM/Price/BAO/PriceSet.php @@ -1058,7 +1058,7 @@ WHERE id = %1"; } // Mark which field should have the auto-renew checkbox, if any. CRM-18305 - if (is_array($form->_membershipTypeValues)) { + if (!empty($form->_membershipTypeValues) && is_array($form->_membershipTypeValues)) { $autoRenewMembershipTypes = array(); foreach ($form->_membershipTypeValues as $membershiptTypeValue) { if ($membershiptTypeValue['auto_renew']) { -- 2.25.1