diff --git a/phpBB/functions/sessions.php b/phpBB/functions/sessions.php index b8a690af2a..0a15b910b1 100644 --- a/phpBB/functions/sessions.php +++ b/phpBB/functions/sessions.php @@ -176,7 +176,9 @@ function session_pagestart($user_ip, $thispage_id, $session_length) } } $userdata = $db->sql_fetchrow($result); + } + if($userdata[user_id] != ''){ // The ID in the cookie was really in the DB. // // Check for user and ip ban ... // @@ -274,6 +276,7 @@ function session_pagestart($user_ip, $thispage_id, $session_length) $password = ""; $userdata['session_logged_in'] = 0; } + print "userdata known?"; $result = session_begin($userdata['user_id'], $user_ip, $thispage_id, $session_length, $autologon, $password); if(!$result) {