BUGFIX Existence check for Member autologin token (Merged from r73253)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@73289 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-03-18 02:59:12 +00:00 committed by Sam Minnee
parent 9426be792f
commit 26b37970f8

View File

@ -253,7 +253,8 @@ class Member extends DataObject {
$member = DataObject::get_one("Member", "Member.ID = '$SQL_uid'");
if($member && $member->RememberLoginToken != $token) {
// check if autologin token matches
if($member && (!$member->RememberLoginToken || $member->RememberLoginToken != $token)) {
$member = null;
}