foreach ($_POST['groups_read'] as $id) { $readable[$id] = 1; $writeable[$id] = 0; $groupsList[] = $id; } } if (isset($_POST['groups_write'])) { foreach ($_POST['groups_write'] as $id) { if (!isset($readable[$id])) { $readable[$id] = 0; $groupsList[] = $id; } $writeable[$id] = 1; } } $groups->setPageGroups($groupsList, $readable, $writeable, $_REQUEST['id']); default: ?> <h2><?php _e('Manage Pages Access'); ?> </h2> <table width="100%" border="0" cellspacing="3" cellpadding="3"> <tr class="thead"> <th><?php _e('Page Title'); ?> </th> <th><?php _e('Groups');