mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
small correction
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5205 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
b4d5539758
commit
b12cfe0b9a
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
|
||||
$sql = "SELECT forum_id, forum_name
|
||||
FROM " . FORUMS_TABLE . "
|
||||
ORDER BY cat_order, forum_order";
|
||||
$sql = 'SELECT f.forum_id, f.forum_name
|
||||
FROM ' . CATEGORIES_TABLE . ' c, ' . FORUMS_TABLE . ' f
|
||||
WHERE f.cat_id = c.cat_id
|
||||
ORDER BY c.cat_order, f.forum_order';
|
||||
if ( !($result = $db->sql_query($sql)) )
|
||||
{
|
||||
message_die(GENERAL_ERROR, 'Couldn not obtain forums information', '', __LINE__, __FILE__, $sql);
|
||||
|
|
Loading…
Add table
Reference in a new issue