-$AND = "what = ''"; $SUB = "";
-if (!empty($_GET['sub']))
-{
- $AND = sprintf("action='%s'", SQL_ESCAPE($_GET['sub']));
- $SUB = SQL_ESCAPE($_GET['sub']);
-}
-
-// Get count of (maybe) selected menu points
-$chk = 0;
-if (!empty($_POST['sel'])) $chk = SELECTION_COUNT($_POST['sel']);
-
-OPEN_TABLE("100%", "admin_content admin_content_align", "");
+$AND = "(`what` = '' OR `what` IS NULL)"; $SUB = '';
+if (isGetRequestElementSet('sub')) {
+ $AND = sprintf("`action`='%s' AND `what` IS NOT NULL", getRequestElement('sub'));
+ $SUB = getRequestElement('sub');
+} // END - if