From ace23ae20a78bb4266818b2215426c3e9097d618 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Mon, 28 Jan 2002 17:40:38 +0000 Subject: [PATCH] Fix various var not set warnings ... many thanks go to The Horta for pointing out and offering fixes for many of these git-svn-id: file:///svn/phpbb/trunk@1999 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/login.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpBB/login.php b/phpBB/login.php index bd75f72c2f..2b88e16c18 100644 --- a/phpBB/login.php +++ b/phpBB/login.php @@ -33,7 +33,7 @@ include($phpbb_root_path . 'common.'.$phpEx); // // Set page ID for session management // -$userdata = session_pagestart($user_ip, PAGE_LOGIN, $session_length); +$userdata = session_pagestart($user_ip, PAGE_LOGIN); init_userprefs($userdata); // // End session management @@ -157,6 +157,7 @@ else // if( !$userdata['session_logged_in'] ) { + $page_title = $lang['Login']; include($phpbb_root_path . 'includes/page_header.'.$phpEx); $template->set_filenames(array( @@ -169,7 +170,7 @@ else if( preg_match("/^redirect=(.*)$/si", $forward_to, $forward_matches) ) { - $forward_to = ($forward_matches[3]) ? $forward_matches[3] : $forward_matches[1]; + $forward_to = ( !empty($forward_matches[3]) ) ? $forward_matches[3] : $forward_matches[1]; $forward_match = explode("&", $forward_to);