underESTIMATED
07-22-2005, 06:03 PM
I'm not sure what I did, but when I click on "Edit pages" I get this error and it does not list and pages.
Warning: Invalid argument supplied for foreach() in /admin/vba_cmps_admin.php on line 992
I am also have a permissions problem with the portal, but I think it might be related.
Here is the code on line 992
foreach ($pages AS $pageid => $page)
{
$cells = array();
$cells[] = '<b>' . str_repeat('- - ', ($page['level'] - 1)) . '<a href="vba_cmps_admin.php?do=editpage&pageid=' . $page['pageid'] . '">' . $page['title'] . '</a></b>' . iif(!$page['active'], ' <span style="color:red;font-size:9px;font-weight:normal;">(' . $vbphrase['inactive'] . ')</span></div>');
$cells[] = '<select name="p' . $page['pageid'] . '" onchange="js_page_jump(' . $page['pageid'] . ');" class="bginput">' . construct_select_options($diroptions) . '</select><input type="button" class="button" value="' . $vbphrase['go'] . '" onclick="js_page_jump(' . $page['pageid'] . ');" />';
$cells[] = '<input type="text" class="bginput" name="order[' . $page['pageid'] . ']" size="3" title="' . $vbphrase['edit_display_order'] . '" value="' . $page['displayorder'] . '" />';
$cells[] = $page['name'];
$cells[] = $vbphrase["$page[type]"];
print_cells_row($cells);
}
Warning: Invalid argument supplied for foreach() in /admin/vba_cmps_admin.php on line 992
I am also have a permissions problem with the portal, but I think it might be related.
Here is the code on line 992
foreach ($pages AS $pageid => $page)
{
$cells = array();
$cells[] = '<b>' . str_repeat('- - ', ($page['level'] - 1)) . '<a href="vba_cmps_admin.php?do=editpage&pageid=' . $page['pageid'] . '">' . $page['title'] . '</a></b>' . iif(!$page['active'], ' <span style="color:red;font-size:9px;font-weight:normal;">(' . $vbphrase['inactive'] . ')</span></div>');
$cells[] = '<select name="p' . $page['pageid'] . '" onchange="js_page_jump(' . $page['pageid'] . ');" class="bginput">' . construct_select_options($diroptions) . '</select><input type="button" class="button" value="' . $vbphrase['go'] . '" onclick="js_page_jump(' . $page['pageid'] . ');" />';
$cells[] = '<input type="text" class="bginput" name="order[' . $page['pageid'] . ']" size="3" title="' . $vbphrase['edit_display_order'] . '" value="' . $page['displayorder'] . '" />';
$cells[] = $page['name'];
$cells[] = $vbphrase["$page[type]"];
print_cells_row($cells);
}