[ticket/13146] $phpbb_dispatcher was missing

Added $phpbb_dispatcher to the globals list for this function.

PHPBB3-13146
This commit is contained in:
brunoais 2014-11-29 14:10:41 +00:00
parent e279a779fc
commit e9cb9baedb

View file

@ -156,6 +156,8 @@ class content_visibility
*/
public function get_forums_visibility_sql($mode, $forum_ids = array(), $table_alias = '')
{
global $phpbb_dispatcher;
$where_sql = '(';
$approve_forums = array_intersect($forum_ids, array_keys($this->auth->acl_getf('m_approve', true)));