aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-08-23 15:30:12 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-08-23 15:30:12 +0000
commit4ff00f40803d2ea07cc081a4360635ca3480b5c3 (patch)
treef83c7e4983a3bcb9c4735ce9cbc3135c14907f6b /phpBB
parented26a546c6c995b7226d433e901b4462d567c04f (diff)
downloadforums-4ff00f40803d2ea07cc081a4360635ca3480b5c3.tar
forums-4ff00f40803d2ea07cc081a4360635ca3480b5c3.tar.gz
forums-4ff00f40803d2ea07cc081a4360635ca3480b5c3.tar.bz2
forums-4ff00f40803d2ea07cc081a4360635ca3480b5c3.tar.xz
forums-4ff00f40803d2ea07cc081a4360635ca3480b5c3.zip
ODBC only returning associative fields so modded next/prev topic code appropriately
git-svn-id: file:///svn/phpbb/trunk@923 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/viewtopic.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 8430b1955c..3479423861 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -51,6 +51,7 @@ if(!isset($topic_id) && !isset($post_id))
// Find topic id if user requested a newer
// or older topic
//
+include('language/lang_english.php');
if( isset($HTTP_GET_VARS["view"]) && empty($HTTP_GET_VARS[POST_POST_URL]) )
{
if($HTTP_GET_VARS["view"] == "next")
@@ -79,8 +80,7 @@ if( isset($HTTP_GET_VARS["view"]) && empty($HTTP_GET_VARS[POST_POST_URL]) )
message_die(GENERAL_ERROR, "Couldn't obtain newer/older topic information", "", __LINE__, __FILE__, $sql);
}
- list($topic_id) = $db->sql_fetchrow($result);
- if( empty($topic_id) )
+ if( !$row = $db->sql_fetchrow($result) )
{
if($HTTP_GET_VARS["view"] == "next")
{
@@ -91,6 +91,10 @@ if( isset($HTTP_GET_VARS["view"]) && empty($HTTP_GET_VARS[POST_POST_URL]) )
message_die(GENERAL_MESSAGE, $lang['No_older_topics']);
}
}
+ else
+ {
+ $topic_id = $row['topic_id'];
+ }
}
//