Fixed error

git-svn-id: file:///svn/phpbb/trunk@508 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2001-06-18 00:33:24 +00:00
parent 59c47a1309
commit c3b0c93c16

View file

@ -360,7 +360,7 @@ if((isset($HTTP_POST_VARS['dosearch']) || isset($HTTP_GET_VARS['dosearch'])) &&
while(list($key, $value) = each($is_auth_ary)) while(list($key, $value) = each($is_auth_ary))
{ {
if(!$value['auth_view']) if(!$value['auth_read'])
{ {
$sql .= " AND (f.forum_id <> $key )"; $sql .= " AND (f.forum_id <> $key )";
} }
@ -485,7 +485,7 @@ if((isset($HTTP_POST_VARS['dosearch']) || isset($HTTP_GET_VARS['dosearch'])) &&
// all accessible forums ... I think // all accessible forums ... I think
// //
$sql = "SELECT forum_name, forum_id $sql = "SELECT forum_name, forum_id
FROM ".FORUMS_TABLE." FROM " . FORUMS_TABLE . "
ORDER BY cat_id, forum_order"; ORDER BY cat_id, forum_order";
$result = $db->sql_query($sql); $result = $db->sql_query($sql);
if(!$result) if(!$result)