LoginRegister icon indicating copy to clipboard operation
LoginRegister copied to clipboard

Notice: Trying to get property 'name' of non-object in LoginRegister.module on line 394

Open adrianbj opened this issue 7 years ago • 1 comments

This happens when it attempts to find a user by email address, but the password is incorrect so the user isn't logged in and $user is not defined.

This should fix things:

if($user) $name = $user->name;

adrianbj avatar May 22 '18 22:05 adrianbj

Sorry, it looks like this is a duplicate of: https://github.com/ryancramerdesign/LoginRegister/issues/6

adrianbj avatar Feb 08 '19 04:02 adrianbj