From 555935d62e08c27168f1e3682d023d6ae99031ab Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Mon, 8 Jul 2002 10:30:41 +0000 Subject: [PATCH] We don't run is_auth here because it adds another query ... as per several previous discussions ... please run any query adding changes through the development forum first, ta muchly. git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2658 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index c6298808de..c088dec2d9 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -92,9 +92,9 @@ function get_userdata($user) function make_jumpbox($action, $match_forum_id = 0) { - global $template, $lang, $db, $userdata, $SID, $nav_links, $phpEx; - - $is_auth = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata); + global $template, $lang, $db, $SID, $nav_links, $phpEx; + +// $is_auth = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata); $sql = "SELECT c.cat_id, c.cat_title, c.cat_order FROM " . CATEGORIES_TABLE . " c, " . FORUMS_TABLE . " f @@ -137,8 +137,11 @@ function make_jumpbox($action, $match_forum_id = 0) $boxstring_forums = ''; for($j = 0; $j < $total_forums; $j++) { - if ( $forum_rows[$j]['cat_id'] == $category_rows[$i]['cat_id'] && $is_auth[$forum_rows[$j]['forum_id']]['auth_view'] ) + if ( $forum_rows[$j]['cat_id'] == $category_rows[$i]['cat_id'] && $forum_rows[$j]['auth_view'] <= AUTH_REG ) { + +// if ( $forum_rows[$j]['cat_id'] == $category_rows[$i]['cat_id'] && $is_auth[$forum_rows[$j]['forum_id']]['auth_view'] ) +// { $selected = ( $forum_rows[$j]['forum_id'] == $match_forum_id ) ? 'selected="selected"' : ''; $boxstring_forums .= '';