From 0fef715e2b3c4383dbccd556e07923477c85b79a Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Fri, 20 Jun 2003 16:34:58 +0000 Subject: [PATCH] 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 --- phpBB/viewtopic.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index d709f620d6..61e157b75b 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -29,7 +29,7 @@ include($phpbb_root_path . 'includes/bbcode.'.$phpEx); // // Start initial var setup // -$topic_id = $post_id = false; +$topic_id = $post_id = 0; if ( isset($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']); } -else -{ - $topic_id = 0; -} if ( isset($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;