From 437c6e7d480912042feda890d3ce5e61d38c4b2c Mon Sep 17 00:00:00 2001 From: Ludovic Arnaud Date: Mon, 21 Oct 2002 04:49:04 +0000 Subject: [PATCH] Should help reducing the number of SQL processes not dying. git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2961 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/viewtopic.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index adfdcb3d4e..0cefca9fc0 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -84,12 +84,14 @@ if ( isset($HTTP_GET_VARS['view']) && empty($HTTP_GET_VARS[POST_POST_URL]) ) message_die(GENERAL_MESSAGE, 'No_new_posts_last_visit'); } + $db->sql_close(); $post_id = $row['post_id']; header($header_location . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=$post_id#$post_id", true)); exit; } } + $db->sql_close(); header($header_location . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id", true)); exit; }