daris/fluxbb-sub-forum — Issue #2: Bug in admin_forums
Author: daris
Created: 2012-02-22 10:56:57+00:00
State: open

http://fluxbb.org/forums/viewtopic.php?pid=44645#p44645

By Newman:

Found a bug in admin_forums.
``echo "\t\t\t\t\t\t\t".'
'.pun_htmlspecialchars($forum_list['forum_name']).'
'."\n";``

Replace with:
``echo "\t\t\t\t\t\t\t".'
'.pun_htmlspecialchars($forum_list['forum_name']).'
'."\n";``

``$forum_list['id']`` is supposed to be ``$forum_list['fid']``

Good work fellas!

Also, change
``$selected = ($forum_list['id'] == $cur_forum['parent_id']) ? ' selected="selected"' : '';``
to
``$selected = ($forum_list['fid'] == $cur_forum['parent_id']) ? ' selected="selected"' : '';``

For the dropdown to work.

Thanks!