CRM-18450 : dmaster notice error
authoryashodha <yashodha.chaku@webaccessglobal.com>
Mon, 25 Apr 2016 06:51:15 +0000 (12:21 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Mon, 25 Apr 2016 06:51:15 +0000 (12:21 +0530)
----------------------------------------
* CRM-18450: dmaster notice error
  https://issues.civicrm.org/jira/browse/CRM-18450

CRM/Price/BAO/PriceSet.php

index c9a485a653fd2f27d2d0e3c9a15b1234cae2823f..4eda1266a7d1f41f4bee574d7c31102c5a417c12 100644 (file)
@@ -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']) {