DOMIN8
02-21-2006, 09:11 PM
Pretty much everything went well but I cant ge around this error.
Warning: Invalid argument supplied for foreach() in /includes/vba_cmps_include_bottom.php on line 258
This is the code from the vba_cmps_include_bottom.php file
// Get Advanced Page Options
if (!empty($pages['advanced']))
{
foreach ($pages['advanced'] AS $sgroup => $sgvalue)
{
foreach ($sgvalue AS $vname => $valu)
{
if ($sgroup == 'adv_portal_main')
{
$vba_options["$vname"] = $valu;
}
else if ($sgroup == 'adv_portal_style')
{
$vba_style["$vname"] = $valu;
}
else
{
$cmps_options["$sgroup"]["$vname"] = $valu;
}
}
}
}
// ######################### Forum Permissions #########################
require_once('./includes/functions_forumlist.php');
cache_moderators();
$adv_forumperms = array();
foreach ($vbulletin->forumcache AS $fid => $finfo)
{
$frmperms["$finfo[forumid]"] = fetch_permissions($finfo['forumid']);
if (!($frmperms["$finfo[forumid]"] & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($frmperms["$finfo[forumid]"] & $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND $finfo['forumid'])
{
$adv_forumperms[] = $finfo['forumid'];
}
}
if (!empty($adv_forumperms))
{
$forumperms_query = 'AND thread.forumid NOT IN(' . implode(',', $adv_forumperms) .')';
}
unset($forum, $fperms);
$donenewsids = array();
// Get tachied / ignored users
This is line 258
foreach ($sgvalue AS $vname => $valu)
Anyone have any ides on what the issue is here?
Warning: Invalid argument supplied for foreach() in /includes/vba_cmps_include_bottom.php on line 258
This is the code from the vba_cmps_include_bottom.php file
// Get Advanced Page Options
if (!empty($pages['advanced']))
{
foreach ($pages['advanced'] AS $sgroup => $sgvalue)
{
foreach ($sgvalue AS $vname => $valu)
{
if ($sgroup == 'adv_portal_main')
{
$vba_options["$vname"] = $valu;
}
else if ($sgroup == 'adv_portal_style')
{
$vba_style["$vname"] = $valu;
}
else
{
$cmps_options["$sgroup"]["$vname"] = $valu;
}
}
}
}
// ######################### Forum Permissions #########################
require_once('./includes/functions_forumlist.php');
cache_moderators();
$adv_forumperms = array();
foreach ($vbulletin->forumcache AS $fid => $finfo)
{
$frmperms["$finfo[forumid]"] = fetch_permissions($finfo['forumid']);
if (!($frmperms["$finfo[forumid]"] & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($frmperms["$finfo[forumid]"] & $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND $finfo['forumid'])
{
$adv_forumperms[] = $finfo['forumid'];
}
}
if (!empty($adv_forumperms))
{
$forumperms_query = 'AND thread.forumid NOT IN(' . implode(',', $adv_forumperms) .')';
}
unset($forum, $fperms);
$donenewsids = array();
// Get tachied / ignored users
This is line 258
foreach ($sgvalue AS $vname => $valu)
Anyone have any ides on what the issue is here?