From eecdd3049f42166975864d2c1eb359ba09c9c229 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 15 Apr 2001 17:32:12 +0000 Subject: error_die changes and various bug fixes to files git-svn-id: file:///svn/phpbb/trunk@149 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/viewforum.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'phpBB/viewforum.php') diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 9f8043c561..5590079f69 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -60,12 +60,12 @@ if(isset($forum_id)) } else { - error_die($db, "", "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"); } if(!$result = $db->sql_query($sql)) { - error_die($db, QUERY_ERROR); + error_die(SQL_QUERY, "Couldn't obtain forums information.", __LINE__, __FILE__); } // @@ -76,13 +76,13 @@ if(!$result = $db->sql_query($sql)) // If the query dosan't return any rows this isn't a valid forum. Inform the user. if(!$total_rows = $db->sql_numrows($result)) { - error_die($db, "", "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); if(!$forum_row) { - error_die($db, QUERY_ERROR); + error_die(SQL_QUERY, "Couldn't obtain rowset.", __LINE__, __FILE__); } $forum_name = stripslashes($forum_row[0]["forum_name"]); @@ -112,7 +112,7 @@ $sql = "SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as i LIMIT $start, $topics_per_page"; if(!$t_result = $db->sql_query($sql)) { - error_die($db, QUERY_ERROR); + error_die(SQL_QUERY, "Couldn't obtain topic information.", __LINE__, __FILE__); } $total_topics = $db->sql_numrows(); @@ -188,7 +188,7 @@ if($total_topics) } else { - $pagination .= " $count "; + $pagination .= " $count "; } $count++; if(!($count % 20)) @@ -203,9 +203,9 @@ if($total_topics) } else { - error_die($db, NO_POSTS); + error_die(NO_POSTS); } include('includes/page_tail.'.$phpEx); -?> +?> \ No newline at end of file -- cgit v1.2.1