diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-04-15 17:32:12 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-04-15 17:32:12 +0000 |
commit | eecdd3049f42166975864d2c1eb359ba09c9c229 (patch) | |
tree | 8e00f37521efd8c2a0eaf228dab6282742ef3a7e /phpBB/viewtopic.php | |
parent | cbafa0db4ebb54217a222c86a3083f0244c0ec3b (diff) | |
download | forums-eecdd3049f42166975864d2c1eb359ba09c9c229.tar forums-eecdd3049f42166975864d2c1eb359ba09c9c229.tar.gz forums-eecdd3049f42166975864d2c1eb359ba09c9c229.tar.bz2 forums-eecdd3049f42166975864d2c1eb359ba09c9c229.tar.xz forums-eecdd3049f42166975864d2c1eb359ba09c9c229.zip |
error_die changes and various bug fixes to files
git-svn-id: file:///svn/phpbb/trunk@149 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r-- | phpBB/viewtopic.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 36b85407d9..7b0e90bed6 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -37,7 +37,7 @@ $is_moderator = 0; if(!isset($topic_id)) { - error_die($db, GENERAL_ERROR, "You have reached this page in error, please go back and try again"); + error_die(GENERAL_ERROR, "You have reached this page in error, please go back and try again"); } $sql = "SELECT t.topic_title, t.topic_status, t.topic_replies, @@ -50,11 +50,11 @@ $sql = "SELECT t.topic_title, t.topic_status, t.topic_replies, if(!$result = $db->sql_query($sql)) { - error_die($db, QUERY_ERROR); + error_die(SQL_QUERY, "Couldn't obtain topic information.", __LINE__, __FILE__); } if(!$total_rows = $db->sql_numrows($result)) { - error_die($db, GENERAL_ERROR, "The forum you selected does not exist. Please go back and try again."); + error_die(GENERAL_ERROR, "The forum you selected does not exist. Please go back and try again."); } $forum_row = $db->sql_fetchrowset($result); $topic_title = $forum_row[0]["topic_title"]; @@ -106,18 +106,18 @@ $sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, LIMIT $start, $posts_per_page"; if(!$result = $db->sql_query($sql)) { - error_die($db, QUERY_ERROR); + error_die(SQL_QUERY, "Couldn't obtain post/user information.", __LINE__, __FILE__); } if(!$total_posts = $db->sql_numrows($result)) { - error_die($db, GENERAL_ERROR, "Error getting post data."); + error_die(GENERAL_ERROR, "There don't appear to be any posts for this topic.", __LINE__, __FILE__); } $sql = "SELECT * FROM ".RANKS_TABLE." ORDER BY rank_min"; if(!$ranks_result = $db->sql_query($sql)) { - error_die($db, QUERY_ERROR); + error_die(SQL_QUERY, "Couldn't obtain ranks information.", __LINE__, __FILE__); } $postrow = $db->sql_fetchrowset($result); $ranksrow = $db->sql_fetchrowset($ranksresult); |