$SW = 2;
$OUT .= "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n";
while (list($id, $cat, $visible) = SQL_FETCHROW($result)) {
- if (empty($_POST['cat'][$id])) $_POST['cat'][$id] = "";
+ if (!REQUEST_ISSET_POST(('cat', $id))) REQUEST_POST('cat', $id) = "";
// Prepare array for the template
$content = array(
'sw' => $SW,
'id' => $id,
);
- if (($_POST['cat'][$id] == "Y") || ((getConfig('register_default') == "Y") && (empty($_POST['cat'][$id])))) {
+ if ((REQUEST_POST('cat', $id) == "Y") || ((getConfig('register_default') == "Y") && (!REQUEST_ISSET_POST(('cat', $id))))) {
$content['def_y'] = " checked=\"checked\"";
} else {
$content['def_n'] = " checked=\"checked\"";