From: mgbdev Date: Thu, 14 Nov 2013 12:21:40 +0000 (+0530) Subject: CRM-10025:Price Set Error X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5e71e542ba5117647971653c9e7d90871e03a0c3;p=civicrm-core.git CRM-10025:Price Set Error --- diff --git a/CRM/Price/Page/Set.php b/CRM/Price/Page/Set.php index d5767a0605..a0a7c9cbdd 100644 --- a/CRM/Price/Page/Set.php +++ b/CRM/Price/Page/Set.php @@ -276,8 +276,13 @@ class CRM_Price_Page_Set extends CRM_Core_Page { CRM_Utils_Array::value('extends', $priceSet[$dao->id]) ); $extends = array(); - foreach ($compIds as $compId) $extends[] = $comps[CRM_Core_Component::getComponentName($compId)]; - $priceSet[$dao->id]['extends'] = implode(', ', $extends); + //CRM-10225 + foreach ($compIds as $compId) { + if (!empty($comps[CRM_Core_Component::getComponentName($compId)])) { + $extends[] = $comps[CRM_Core_Component::getComponentName($compId)]; + } + } + $priceSet[$dao->id]['extends'] = implode(', ', $extends); // form all action links $action = array_sum(array_keys($this->actionLinks()));