[feature/sphinx-fulltext-search] fix auth bug

$this->auth replaces $auth as at other occurences of auth.

PHPBB3-10946
This commit is contained in:
Dhruv 2012-07-27 10:50:20 +05:30
parent cec9f7d54e
commit fe8a0d3bc6

View file

@ -477,7 +477,7 @@ class phpbb_search_fulltext_sphinx
if (sizeof($ex_fid_ary))
{
// All forums that a user is allowed to access
$fid_ary = array_unique(array_intersect(array_keys($this->auth->acl_getf('f_read', true)), array_keys($auth->acl_getf('f_search', true))));
$fid_ary = array_unique(array_intersect(array_keys($this->auth->acl_getf('f_read', true)), array_keys($this->auth->acl_getf('f_search', true))));
// All forums that the user wants to and can search in
$search_forums = array_diff($fid_ary, $ex_fid_ary);