From 079dc59927b8b83ff968cf29321dd0146a879b2f Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 4 Apr 2015 19:34:10 +1300 Subject: [PATCH] minor tidy ups. Don't pass param as reference if not altered --- CRM/Event/Form/EventFees.php | 3 +-- CRM/Price/BAO/PriceSet.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CRM/Event/Form/EventFees.php b/CRM/Event/Form/EventFees.php index 5ac257e2a6..6eb0b51ad7 100644 --- a/CRM/Event/Form/EventFees.php +++ b/CRM/Event/Form/EventFees.php @@ -61,8 +61,7 @@ class CRM_Event_Form_EventFees { if ($form->_eventId && ($currency = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $form->_eventId, 'currency')) ) { - $config = CRM_Core_Config::singleton(); - $config->defaultCurrency = $currency; + CRM_Core_Config::singleton()->defaultCurrency = $currency; } } diff --git a/CRM/Price/BAO/PriceSet.php b/CRM/Price/BAO/PriceSet.php index 6371a749f5..338726928a 100644 --- a/CRM/Price/BAO/PriceSet.php +++ b/CRM/Price/BAO/PriceSet.php @@ -713,7 +713,7 @@ WHERE id = %1"; * @param $lineItem * @param string $component */ - public static function processAmount(&$fields, &$params, &$lineItem, $component = '') { + public static function processAmount($fields, &$params, &$lineItem, $component = '') { // using price set $totalPrice = $totalTax = 0; $radioLevel = $checkboxLevel = $selectLevel = $textLevel = array(); -- 2.25.1