Issue Bug Closed

#39248fetchUserRecord don't work without username

Robert Heel 07/25/12, 13:20 updated 10/02/18, 12:17

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.