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
 
Back
Top Bottom