mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
Fixed error
git-svn-id: file:///svn/phpbb/trunk@508 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -360,7 +360,7 @@ if((isset($HTTP_POST_VARS['dosearch']) || isset($HTTP_GET_VARS['dosearch'])) &&
|
||||
|
||||
while(list($key, $value) = each($is_auth_ary))
|
||||
{
|
||||
if(!$value['auth_view'])
|
||||
if(!$value['auth_read'])
|
||||
{
|
||||
$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
|
||||
//
|
||||
$sql = "SELECT forum_name, forum_id
|
||||
FROM ".FORUMS_TABLE."
|
||||
FROM " . FORUMS_TABLE . "
|
||||
ORDER BY cat_id, forum_order";
|
||||
$result = $db->sql_query($sql);
|
||||
if(!$result)
|
||||
|
Reference in New Issue
Block a user