mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
More fixes ... hopefully corrects for moved topic/pagination issues ... needs testing (run update_to_201.php ... if you are already running 2.0.1 you'll need to modify the case statements in update_to_201 or necessary checks won't complete)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2579 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -113,20 +113,14 @@ if ( isset($HTTP_GET_VARS['view']) && empty($HTTP_GET_VARS[POST_POST_URL]) )
|
||||
message_die(GENERAL_ERROR, "Could not obtain newer/older topic information", '', __LINE__, __FILE__, $sql);
|
||||
}
|
||||
|
||||
if ( !($row = $db->sql_fetchrow($result)) )
|
||||
if ( $row = $db->sql_fetchrow($result) )
|
||||
{
|
||||
if( $HTTP_GET_VARS['view'] == 'next' )
|
||||
{
|
||||
message_die(GENERAL_MESSAGE, 'No_newer_topics');
|
||||
}
|
||||
else
|
||||
{
|
||||
message_die(GENERAL_MESSAGE, 'No_older_topics');
|
||||
}
|
||||
$topic_id = $row['topic_id'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$topic_id = $row['topic_id'];
|
||||
$message = ( $HTTP_GET_VARS['view'] == 'next' ) ? 'No_newer_topics' : 'No_older_topics';
|
||||
message_die(GENERAL_MESSAGE, $message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user