Property of non-object in Functions/CheckLoginCookie.php on line 17
-
Can’t remember how to duplicate this issue, but it happens as a result of $UserDB not being an object. Fixed by replacing line 17:
Line 17:
$HashedDBPassword = $UserDB->User_Password;
Replace With:
$HashedDBPassword = (!empty($UserDB->User_Password)) ? $UserDB->User_Password : null;
Also replaced line 19 for good measure. Might not be necessary.
Line 19:
if ($HashedDBPassword == $HashedPassword) {
Replace With:
if (!is_null($HashedDBPassword) && $HashedDBPassword == $HashedPassword) {
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Property of non-object in Functions/CheckLoginCookie.php on line 17’ is closed to new replies.