mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
error_die changes and various bug fixes
git-svn-id: file:///svn/phpbb/trunk@150 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -85,7 +85,7 @@ function make_jumpbox($db)
|
||||
if(!$q_categories = $db->sql_query($sql))
|
||||
{
|
||||
$db_error = $db->sql_error();
|
||||
error_die($db, GENERAL_ERROR, "Couldn't obtain category list ".$db_error["message"]." : make_jumpbox");
|
||||
error_die(SQL_QUERY, "Couldn't obtain category list.", __LINE__, __FILE__);
|
||||
}
|
||||
|
||||
$total_categories = $db->sql_numrows();
|
||||
@@ -100,7 +100,7 @@ function make_jumpbox($db)
|
||||
ORDER BY cat_id, forum_order";
|
||||
if(!$q_forums = $db->sql_query($sql))
|
||||
{
|
||||
error_die($db, QUERY_ERROR);
|
||||
error_die(SQL_QUERY, "Couldn't obtain forums information.", __LINE__, __FILE__);
|
||||
}
|
||||
$total_forums = $db->sql_numrows($q_forums);
|
||||
$forum_rows = $db->sql_fetchrowset($q_forums);
|
||||
|
Reference in New Issue
Block a user