mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Default forum for make_forum_select
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2726 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
//
|
||||
// Simple version of jumpbox, just lists authed forums
|
||||
//
|
||||
function make_forum_select($box_name, $ignore_forum = false)
|
||||
function make_forum_select($box_name, $ignore_forum = false, $select_forum = '')
|
||||
{
|
||||
global $db, $userdata;
|
||||
|
||||
@@ -43,7 +43,8 @@ function make_forum_select($box_name, $ignore_forum = false)
|
||||
{
|
||||
if ( $is_auth_ary[$row['forum_id']]['auth_read'] && $ignore_forum != $row['forum_id'] )
|
||||
{
|
||||
$forum_list .= '<option value="' . $row['forum_id'] . '">' . $row['forum_name'] . '</option>';
|
||||
$selected = ( $select_forum == $row['forum_id'] ) ? ' selected="selected"' : '';
|
||||
$forum_list .= '<option value="' . $row['forum_id'] . '"' . $selected .'>' . $row['forum_name'] . '</option>';
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user