replaceGreetingTokens - Be more forgiving about $contactDetails
authorTim Otten <totten@civicrm.org>
Fri, 15 Oct 2021 07:42:28 +0000 (00:42 -0700)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 23 Oct 2021 00:13:15 +0000 (13:13 +1300)
commit4c820cf94553187b0d83201da180bd2d59ecd861
tree6d78a2702d573f8ffbd1578bd4a18e39d1581e90
parent32b856d78250af55f510029dcfe6cf7c01f8ce63
replaceGreetingTokens - Be more forgiving about $contactDetails

This should fix a failure in `TokenConsistencyTest`. Setting a breakpoint and monitoring
`$contactDetails`, it appears that the data would come in multiple formats. (Sometimes as
a nested array; sometimes as a flatter array.) This makes it work with both cases.
CRM/Utils/Token.php