mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Fix bug #496783
git-svn-id: file:///svn/phpbb/trunk@1746 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
0767564609
commit
26f286eb30
1 changed files with 12 additions and 12 deletions
|
@ -50,20 +50,11 @@ else
|
||||||
// End initial var setup
|
// End initial var setup
|
||||||
//
|
//
|
||||||
|
|
||||||
//
|
|
||||||
// Start session management
|
|
||||||
//
|
|
||||||
$userdata = session_pagestart($user_ip, $forum_id, $session_length);
|
|
||||||
init_userprefs($userdata);
|
|
||||||
//
|
|
||||||
// End session management
|
|
||||||
//
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Check if the user has actually sent a forum ID with his/her request
|
// Check if the user has actually sent a forum ID with his/her request
|
||||||
// If not give them a nice error page.
|
// If not give them a nice error page.
|
||||||
//
|
//
|
||||||
if( isset($forum_id) )
|
if( !empty($forum_id) )
|
||||||
{
|
{
|
||||||
$sql = "SELECT *
|
$sql = "SELECT *
|
||||||
FROM " . FORUMS_TABLE . "
|
FROM " . FORUMS_TABLE . "
|
||||||
|
@ -75,7 +66,7 @@ if( isset($forum_id) )
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
message_die(GENERAL_MESSAGE, $lang['Reached_on_error']);
|
message_die(GENERAL_MESSAGE, 'Forum_not_exist');
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -84,10 +75,19 @@ else
|
||||||
//
|
//
|
||||||
if( !$total_rows = $db->sql_numrows($result) )
|
if( !$total_rows = $db->sql_numrows($result) )
|
||||||
{
|
{
|
||||||
message_die(GENERAL_MESSAGE, $lang['Forum_not_exist']);
|
message_die(GENERAL_MESSAGE, 'Forum_not_exist');
|
||||||
}
|
}
|
||||||
$forum_row = $db->sql_fetchrow($result);
|
$forum_row = $db->sql_fetchrow($result);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Start session management
|
||||||
|
//
|
||||||
|
$userdata = session_pagestart($user_ip, $forum_id, $session_length);
|
||||||
|
init_userprefs($userdata);
|
||||||
|
//
|
||||||
|
// End session management
|
||||||
|
//
|
||||||
|
|
||||||
//
|
//
|
||||||
// Start auth check
|
// Start auth check
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Reference in a new issue