aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/search.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-06-17 23:53:04 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-06-17 23:53:04 +0000
commit2ec0206283d9a7112657829ddc8e9faa3011b35a (patch)
tree1fa35a636d15b3b522467d8a7af76a8bd3375f1d /phpBB/search.php
parent04b0b11e9766c72bc32762be3a8728b3bccfcdd5 (diff)
downloadforums-2ec0206283d9a7112657829ddc8e9faa3011b35a.tar
forums-2ec0206283d9a7112657829ddc8e9faa3011b35a.tar.gz
forums-2ec0206283d9a7112657829ddc8e9faa3011b35a.tar.bz2
forums-2ec0206283d9a7112657829ddc8e9faa3011b35a.tar.xz
forums-2ec0206283d9a7112657829ddc8e9faa3011b35a.zip
Switched forum_auth to the forums table
git-svn-id: file:///svn/phpbb/trunk@506 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/search.php')
-rw-r--r--phpBB/search.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/phpBB/search.php b/phpBB/search.php
index ae33e1ca86..c7cd358f18 100644
--- a/phpBB/search.php
+++ b/phpBB/search.php
@@ -312,7 +312,7 @@ if((isset($HTTP_POST_VARS['dosearch']) || isset($HTTP_GET_VARS['dosearch'])) &&
// Limit to search to accessible
// forums
//
- $is_auth_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata);
+ $is_auth_ary = auth(AUTH_READ, AUTH_LIST_ALL, $userdata);
//
// Start building appropriate SQL query
@@ -355,7 +355,7 @@ if((isset($HTTP_POST_VARS['dosearch']) || isset($HTTP_GET_VARS['dosearch'])) &&
if($searchforum != "all")
{
- $sql .= ($is_auth_ary[$searchforum]['auth_view']) ? " AND (f.forum_id = '$searchforum')" : "";
+ $sql .= ($is_auth_ary[$searchforum]['auth_read']) ? " AND (f.forum_id = '$searchforum')" : "";
}
while(list($key, $value) = each($is_auth_ary))
@@ -493,12 +493,13 @@ if(!$result)
error_die(QUERY_ERROR, "Couldn't obtain forum_name/forum_id", __LINE__, __FILE__);
}
-$is_auth_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata);
+$is_auth_ary = auth(AUTH_READ, AUTH_LIST_ALL, $userdata);
$s_forums = "<option value=\"all\">".$lang['All']."</option>";
+
while($row = $db->sql_fetchrow($result))
{
- if($is_auth_ary[$row['forum_id']]['auth_view'])
+ if($is_auth_ary[$row['forum_id']]['auth_read'])
{
$s_forums .= "<option value=\"".$row['forum_id']."\">".$row['forum_name']."</option>";
}