From ba629b808d383f4add73e7389ce918c44fb50630 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 18 Sep 2005 16:17:21 +0000 Subject: [PATCH] - more bugfixes git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5211 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/index.php | 4 +-- phpBB/db/mysql.php | 2 +- phpBB/db/mysql4.php | 2 +- phpBB/docs/CHANGELOG.html | 4 +++ phpBB/includes/functions_post.php | 11 +------- phpBB/index.php | 27 ++++++++++--------- phpBB/posting.php | 3 ++- .../subSilver/admin/forum_admin_body.tpl | 2 +- 8 files changed, 26 insertions(+), 29 deletions(-) diff --git a/phpBB/admin/index.php b/phpBB/admin/index.php index 817d088a5f..4939b42a70 100644 --- a/phpBB/admin/index.php +++ b/phpBB/admin/index.php @@ -567,7 +567,7 @@ elseif( isset($HTTP_GET_VARS['pane']) && $HTTP_GET_VARS['pane'] == 'right' ) $errno = 0; $errstr = $version_info = ''; - if ($fsock = @fsockopen('www.phpbb.com', 80, $errno, $errstr)) + if ($fsock = @fsockopen('www.phpbb.com', 80, $errno, $errstr, 10)) { @fputs($fsock, "GET /updatecheck/20x.txt HTTP/1.1\r\n"); @fputs($fsock, "HOST: www.phpbb.com\r\n"); @@ -602,7 +602,7 @@ elseif( isset($HTTP_GET_VARS['pane']) && $HTTP_GET_VARS['pane'] == 'right' ) else { $version_info = '

' . $lang['Version_not_up_to_date']; - $version_info .= '
' . sprintf($lang['Latest_version_info'], $latest_version) . sprintf($lang['Current_version_info'], '2' . $board_config['version']) . '

'; + $version_info .= '
' . sprintf($lang['Latest_version_info'], $latest_version) . ' ' . sprintf($lang['Current_version_info'], '2' . $board_config['version']) . '

'; } } else diff --git a/phpBB/db/mysql.php b/phpBB/db/mysql.php index 054394f05e..adaa2bf657 100644 --- a/phpBB/db/mysql.php +++ b/phpBB/db/mysql.php @@ -259,7 +259,7 @@ class sql_db { if($this->rowset[$query_id]) { - $result = $this->rowset[$query_id][$field]; + $result = $this->rowset[$query_id][0][$field]; } else if($this->row[$query_id]) { diff --git a/phpBB/db/mysql4.php b/phpBB/db/mysql4.php index b0e657e8ee..d00ea7700e 100644 --- a/phpBB/db/mysql4.php +++ b/phpBB/db/mysql4.php @@ -271,7 +271,7 @@ class sql_db { if( $this->rowset[$query_id] ) { - $result = $this->rowset[$query_id][$field]; + $result = $this->rowset[$query_id][0][$field]; } else if( $this->row[$query_id] ) { diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index fd560eaa96..a6d014ef20 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -67,9 +67,11 @@ p,ul,td {font-size:10pt;}