Fixed Various templater array_* functions do not work with AbstractCollection

Xon

Well-known member
Affected version
XF 2.3.8 Preview
I'm not sure if this is a bug or not, but in templates it can be hit or miss on if something is an array or an AbstractionCollection. It would be nice if the templater functions would smooth over the difference in the various array_* functions (both new and old).

Adding $array instance of AbstractCollection ? $array->toArray() : $array is much easier on the php side then reliably doing that in templates
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.8).

Change log:
Add support for AbstractCollection when using the Templater's array_* functions (#2182)
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom