mishamx / yii-user

Yii PHP Framework extension for registration and management users accounts.
http://yii-user.2mx.org/
186 stars 154 forks source link

updateSession() results in 'Trying to get property of non-object' #17

Closed ametad closed 7 years ago

ametad commented 12 years ago

If the new User is NOT logged in after a registration, the calling of updateSession() in the User::afterSave() or Profile::afterSave() function will result in an error: 'Trying to get property of non-object'.

I think a check is in order to verify the current user is not a guest, before running updateSession.