X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FPrice%2FPage%2FOption.php;h=78a0bb7c59b7bc54ddc7b850f038c31f7810971e;hb=79ebec7bda156aaa375c673d4799bb374f2ee1dd;hp=8f7220e393e045468a4eb710af0ded92ef32fcb1;hpb=b987fa2b9f45bbfb37bfcebe9a846c003251e933;p=civicrm-core.git diff --git a/CRM/Price/Page/Option.php b/CRM/Price/Page/Option.php index 8f7220e393..78a0bb7c59 100644 --- a/CRM/Price/Page/Option.php +++ b/CRM/Price/Page/Option.php @@ -1,9 +1,9 @@ addScriptFile('civicrm', 'js/crm.livePage.js'); $customOption = array(); CRM_Price_BAO_PriceFieldValue::getValues($this->_fid, $customOption); $config = CRM_Core_Config::singleton(); $financialType = CRM_Contribute_PseudoConstant::financialType(); foreach ($customOption as $id => $values) { $action = array_sum(array_keys($this->actionLinks())); - if( CRM_Utils_Array::value('financial_type_id', $values)){ + if (!empty($values['financial_type_id'])){ $customOption[$id]['financial_type_id'] = $financialType[$values['financial_type_id']]; } // update enable/disable links depending on price_field properties. @@ -149,7 +150,7 @@ class CRM_Price_Page_Option extends CRM_Core_Page { $action -= CRM_Core_Action::DISABLE; } } - if (CRM_Utils_Array::value('is_default', $customOption[$id])) { + if (!empty($customOption[$id]['is_default'])) { $customOption[$id]['is_default'] = ''; } else {