$sql = "SELECT * FROM " . FORUMS_TABLE . " f ORDER BY forum_order";
$sql = 'SELECT f.* FROM ' . FORUMS_TABLE . ' f, ' . CATEGORIES_TABLE . ' c WHERE f.cat_id = c.cat_id ORDER BY c.cat_order, f.forum_order';
if( count($name) ) { $t_usergroup_list = $t_pending_list = '';
$t_usergroup_list = $t_pending_list = ''; if( count($name) ) {
else { $t_usergroup_list = $lang['None']; }
$t_usergroup_list = ($t_usergroup_list == '') ? $lang['None'] : $t_usergroup_list; $t_pending_list = ($t_pending_list == '') ? $lang['None'] : $t_pending_list;