[phpBB Debug] PHP Warning: in file [ROOT]/portal/modules/portal_main_menu.php on line 107: array_intersect(): Argument #1 is not an array
[phpBB Debug] PHP Warning: in file [ROOT]/portal/modules/portal_main_menu.php on line 107: array_intersect(): Argument #1 is not an array
[phpBB Debug] PHP Warning: in file [ROOT]/portal/modules/portal_main_menu.php on line 107: array_intersect(): Argument #1 is not an array
[phpBB Debug] PHP Warning: in file [ROOT]/portal/modules/portal_main_menu.php on line 107: array_intersect(): Argument #1 is not an array
[phpBB Debug] PHP Warning: in file [ROOT]/portal/modules/portal_main_menu.php on line 107: array_intersect(): Argument #1 is not an array
[phpBB Debug] PHP Warning: in file [ROOT]/portal/modules/portal_main_menu.php on line 107: array_intersect(): Argument #1 is not an array
[phpBB Debug] PHP Warning: in file [ROOT]/portal/modules/portal_main_menu.php on line 107: array_intersect(): Argument #1 is not an array
[phpBB Debug] PHP Warning: in file [ROOT]/portal/modules/portal_main_menu.php on line 107: array_intersect(): Argument #1 is not an array
[phpBB Debug] PHP Warning: in file [ROOT]/portal/modules/portal_main_menu.php on line 107: array_intersect(): Argument #1 is not an array
[phpBB Debug] PHP Warning: in file [ROOT]/portal/modules/portal_links.php on line 97: array_intersect(): Argument #1 is not an array
[phpBB Debug] PHP Warning: in file [ROOT]/portal/modules/portal_links.php on line 97: array_intersect(): Argument #1 is not an array
Решение
найти в portal_main_menu.php:
- Код: выделить все
public function get_template_side($module_id)
{
global $config, $template, $phpEx, $phpbb_root_path, $user, $db;
$links = array();
$portal_config = obtain_portal_config();
заменить на:
- Код: выделить все
public function get_template_side($module_id)
{
global $config, $template, $phpEx, $phpbb_root_path, $user, $db;
$links = array();
$groups_ary = array();
$portal_config = obtain_portal_config();
в файле portal_links.php:
- Код: выделить все
public function get_template_side($module_id)
{
global $config, $template, $phpEx, $phpbb_root_path, $user, $db;
$links = array();
$portal_config = obtain_portal_config();
меняем на:
- Код: выделить все
public function get_template_side($module_id)
{
global $config, $template, $phpEx, $phpbb_root_path, $user, $db;
$links = array();
$groups_ary = array();
$portal_config = obtain_portal_config();
Далее находим:
- Код: выделить все
$link_url = request_var('link_url', ' ');
...
$groups_ary[] = $row['group_id'];
}
и заменяем блок на:
- Код: выделить все
$link_url = request_var('link_url', ' ');
$link_url = str_replace('&', '&', $link_url);
$link_permission = request_var('permission-setting-link', array(0 => ''));
$groups_ary = array();
// get groups and check if the selected groups actually exist
$sql = 'SELECT group_id
FROM ' . GROUPS_TABLE . '
ORDER BY group_id ASC';
$result = $db->sql_query($sql);
while($row = $db->sql_fetchrow($result))
{
$groups_ary[] = $row['group_id'];
}