mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
d69520bd70
The function "first" on ArrayList uses the PHP function "reset", which returns false if there aren't any elements in the array. Two functions inside ArrayList use this function, "canFilterBy" and "byID". I've changed these functions to catch the possibility of a false return from first().