X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FToken.php;h=e3bdcc102b9b02525450be95701a771271490733;hb=38a6a10f7826969c630b33a24303c5bfe45b494c;hp=44a649885882a2453150f85d1eafa832aa062228;hpb=3ad5c6019923f2d95fcc3d143764cbc89ec8bb4e;p=civicrm-core.git diff --git a/CRM/Utils/Token.php b/CRM/Utils/Token.php index 44a6498858..e3bdcc102b 100644 --- a/CRM/Utils/Token.php +++ b/CRM/Utils/Token.php @@ -1404,8 +1404,8 @@ class CRM_Utils_Token { $greetingTokens = $remainingTokens; reset($greetingTokens); $greetingsReturnProperties = array(); - while (list($key) = each($greetingTokens)) { - $props = array_flip(CRM_Utils_Array::value($key, $greetingTokens)); + foreach ($greetingTokens as $value) { + $props = array_flip($value); $props = array_fill_keys(array_keys($props), 1); $greetingsReturnProperties = $greetingsReturnProperties + $props; } @@ -1762,6 +1762,7 @@ class CRM_Utils_Token { 'id' => $membership['membership_type_id'], 'return' => 'minimum_fee', )); + $value = CRM_Utils_Money::format($value, NULL, NULL, TRUE); } catch (CiviCRM_API3_Exception $e) { // we can anticipate we will get an error if the minimum fee is set to 'NULL' because of the way the