-if (!empty($_GET['admin'])) {
- // Secure ID number
- $aid = bigintval($_GET['admin']);
- $_POST['edit'] = "1";
- $_POST['sel'][$aid] = array("1");
-}
-if ((isset($_POST['edit'])) && (SELECTION_COUNT($_POST['sel']) > 0)) {
+if (isGetRequestElementSet('admin')) {
+ // Secure id number
+ $adminId = bigintval(getRequestElement('admin'));
+
+ // Set required fields
+ setPostRequestElement('edit', 1);
+ setPostRequestElement('sel', array($adminId => 1));
+} // END - if
+
+if ((isPostRequestElementSet('edit')) && (countPostSelection() > 0)) {