small correction

git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5205 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2005-09-14 19:16:21 +00:00
parent b4d5539758
commit b12cfe0b9a

View file

@ -30,9 +30,10 @@ function make_forum_select($box_name, $ignore_forum = false, $select_forum = '')
$is_auth_ary = auth(AUTH_READ, AUTH_LIST_ALL, $userdata); $is_auth_ary = auth(AUTH_READ, AUTH_LIST_ALL, $userdata);
$sql = "SELECT forum_id, forum_name $sql = 'SELECT f.forum_id, f.forum_name
FROM " . FORUMS_TABLE . " FROM ' . CATEGORIES_TABLE . ' c, ' . FORUMS_TABLE . ' f
ORDER BY cat_order, forum_order"; WHERE f.cat_id = c.cat_id
ORDER BY c.cat_order, f.forum_order';
if ( !($result = $db->sql_query($sql)) ) if ( !($result = $db->sql_query($sql)) )
{ {
message_die(GENERAL_ERROR, 'Couldn not obtain forums information', '', __LINE__, __FILE__, $sql); message_die(GENERAL_ERROR, 'Couldn not obtain forums information', '', __LINE__, __FILE__, $sql);