Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#498 "Forgot Password" Dialog Fails if Inexistant User is Specified

in 3.5
open
nobody
None
5
2013-09-24
2013-09-24
Jens Erat
No

When a user tries to reset his password, but enters an invalid user ID (eg., 'foo' if there is no user 'foo'), the next page fails with following error message (if printing error messages is anabled):

Fatal error: Call to a member function getConfirmationKey() on a non-object in /srv/www/htdocs/rz56/html/portal/pages/user_login.php on line 177

Problem seems to be line 163: if (!$users) which fails to recognize invalid users, as array(1) { [0]=> bool(false) } is returned instead of some false/null value.

Discussion