diff --git a/CRM/Utils/Token.php b/CRM/Utils/Token.php index 6cc3365cae92..923635f8ec56 100644 --- a/CRM/Utils/Token.php +++ b/CRM/Utils/Token.php @@ -1801,7 +1801,10 @@ public static function getContributionTokenReplacement($token, &$contribution, $ case 'net_amount': case 'fee_amount': case 'non_deductible_amount': - $value = CRM_Utils_Money::format(CRM_Utils_Array::retrieveValueRecursive($contribution, $token)); + // FIXME: Is this ever a multi-dimensional array? Why use retrieveValueRecursive()? + $amount = CRM_Utils_Array::retrieveValueRecursive($contribution, $token); + $currency = CRM_Utils_Array::retrieveValueRecursive($contribution, 'currency'); + $value = CRM_Utils_Money::format($amount, $currency); break; case 'receive_date':