Skip to content

Commit

Permalink
Changing some error messages to be unique in viewtopic.php, spotted b…
Browse files Browse the repository at this point in the history
…y NuLL. #158
  • Loading branch information
reines committed Oct 15, 2010
1 parent 02f66d8 commit 6d47847
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions viewtopic.php
Expand Up @@ -49,7 +49,7 @@
$tracked_topics = get_tracked_topics();
$last_viewed = isset($tracked_topics['topics'][$id]) ? $tracked_topics['topics'][$id] : $pun_user['last_visit'];

$result = $db->query('SELECT MIN(id) FROM '.$db->prefix.'posts WHERE topic_id='.$id.' AND posted>'.$last_viewed) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());
$result = $db->query('SELECT MIN(id) FROM '.$db->prefix.'posts WHERE topic_id='.$id.' AND posted>'.$last_viewed) or error('Unable to fetch first new post info', __FILE__, __LINE__, $db->error());
$first_new_post_id = $db->result($result);

if ($first_new_post_id)
Expand All @@ -67,7 +67,7 @@
// If action=last, we redirect to the last post
else if ($action == 'last')
{
$result = $db->query('SELECT MAX(id) FROM '.$db->prefix.'posts WHERE topic_id='.$id) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());
$result = $db->query('SELECT MAX(id) FROM '.$db->prefix.'posts WHERE topic_id='.$id) or error('Unable to fetch last post info', __FILE__, __LINE__, $db->error());
$last_post_id = $db->result($result);

if ($last_post_id)
Expand Down

0 comments on commit 6d47847

Please sign in to comment.