#104348Harden "fetchPossibleUsers" of the class "AbstractUserAuthentication"
Description
In the method “fetchPossibleUsers” of the class “AbstractUserAuthentication”, the method “getUser” is called. This method return either an array or false.
In case of return of an empty array, the following condition is met (if (is_array($row))) and a PHP warning is thrown.
The condition must be hardened and check the the variable $row is an array and not an empty one.
Another possibility is to throw an exception if return is an array, but “uid” and “username” column are not in there.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.