#39248fetchUserRecord don't work without username
Description
e.g. fetchUserRecord($dbUser, false, ‘fe_users.uid=1’) don’t work because $usernameClause is empty and is followed by “ AND” in the sql query.
It should be set to “1=1”, or $extraWhere should moved after $usernameClause.
Patch attached.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.