mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Fix missing user_id on redirect from login
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2493 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
abef20d100
commit
e2e34b7f14
1 changed files with 6 additions and 6 deletions
|
@ -27,12 +27,6 @@ if ( !defined('IN_PHPBB') )
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !$userdata['session_logged_in'] )
|
|
||||||
{
|
|
||||||
header('Location: ' . append_sid("login.$phpEx?redirect=profile.$phpEx&mode=email&" . POST_USERS_URL . "=$user_id", true));
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( !empty($HTTP_GET_VARS[POST_USERS_URL]) || !empty($HTTP_POST_VARS[POST_USERS_URL]) )
|
if ( !empty($HTTP_GET_VARS[POST_USERS_URL]) || !empty($HTTP_POST_VARS[POST_USERS_URL]) )
|
||||||
{
|
{
|
||||||
$user_id = ( !empty($HTTP_GET_VARS[POST_USERS_URL]) ) ? $HTTP_GET_VARS[POST_USERS_URL] : $HTTP_POST_VARS[POST_USERS_URL];
|
$user_id = ( !empty($HTTP_GET_VARS[POST_USERS_URL]) ) ? $HTTP_GET_VARS[POST_USERS_URL] : $HTTP_POST_VARS[POST_USERS_URL];
|
||||||
|
@ -42,6 +36,12 @@ else
|
||||||
message_die(GENERAL_MESSAGE, $lang['No_user_specified']);
|
message_die(GENERAL_MESSAGE, $lang['No_user_specified']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( !$userdata['session_logged_in'] )
|
||||||
|
{
|
||||||
|
header('Location: ' . append_sid("login.$phpEx?redirect=profile.$phpEx&mode=email&" . POST_USERS_URL . "=$user_id", true));
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
$sql = "SELECT username, user_email, user_viewemail, user_lang
|
$sql = "SELECT username, user_email, user_viewemail, user_lang
|
||||||
FROM " . USERS_TABLE . "
|
FROM " . USERS_TABLE . "
|
||||||
WHERE user_id = $user_id";
|
WHERE user_id = $user_id";
|
||||||
|
|
Loading…
Add table
Reference in a new issue