coolcsn / CsnUser

Authentication module using Doctrine
MIT License
33 stars 36 forks source link

undefined index at RegisterationController.php at line 222 #36

Open innamhunzai opened 9 years ago

innamhunzai commented 9 years ago

222: $user = $user[0];

The line gives error if user does not exist who is trying to reset password.

I have replaced it with

222: $user = isset($user[0])?$user[0]:null;

it is working fine now..

wingman007 commented 9 years ago

Thank you very much! I will issue a ticket to reflect the change in the upstream repository.