- $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] = "";
+ $OUT .= "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n";
+ while ($content = SQL_FETCHARRAY($result)) {
+ // Is the array element not set?
+ if (!REQUEST_ISSET_POST('cat', $content['id'])) {
+ // Then set it
+ REQUEST_SET_POST(array('cat', $content['id']), "");
+ } // END - if
+