mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
post/topic_id were already set by default ... no need for "else" statements
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4159 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
94b40f5e1e
commit
0fef715e2b
1 changed files with 2 additions and 9 deletions
|
@ -29,7 +29,7 @@ include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
|
||||||
//
|
//
|
||||||
// Start initial var setup
|
// Start initial var setup
|
||||||
//
|
//
|
||||||
$topic_id = $post_id = false;
|
$topic_id = $post_id = 0;
|
||||||
if ( isset($HTTP_GET_VARS[POST_TOPIC_URL]) )
|
if ( isset($HTTP_GET_VARS[POST_TOPIC_URL]) )
|
||||||
{
|
{
|
||||||
$topic_id = intval($HTTP_GET_VARS[POST_TOPIC_URL]);
|
$topic_id = intval($HTTP_GET_VARS[POST_TOPIC_URL]);
|
||||||
|
@ -38,19 +38,12 @@ else if ( isset($HTTP_GET_VARS['topic']) )
|
||||||
{
|
{
|
||||||
$topic_id = intval($HTTP_GET_VARS['topic']);
|
$topic_id = intval($HTTP_GET_VARS['topic']);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
$topic_id = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( isset($HTTP_GET_VARS[POST_POST_URL]))
|
if ( isset($HTTP_GET_VARS[POST_POST_URL]))
|
||||||
{
|
{
|
||||||
$post_id = intval($HTTP_GET_VARS[POST_POST_URL]);
|
$post_id = intval($HTTP_GET_VARS[POST_POST_URL]);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
$post_id = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;
|
$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue