Fixed wholeWordTrim() and snippetString() fail if the value of $string is 0

PaulB

Well-known member
There are a few other places where this arises in 2.2.9. Someone should probably go through all of the changes in 2.2.9 and change any tests on strings to use ?? or === instead.
 

XF Bug Bot

XenForo bug fixer bot
Staff member
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.2.11).

Change log:
Properly account for falsy values in wholeWordTrim and snippetString functions
There may be a delay before changes are rolled out to the XenForo Community.
 
Top