-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 (isGetRequestParameterSet('admin')) {
+ // Secure id number
+ $adminId = bigintval(getRequestParameter('admin'));
+
+ // Set required fields
+ setPostRequestParameter('edit', 1);
+ setPostRequestParameter('sel', array($adminId => 1));
+} // END - if
+
+if ((isFormSent('edit')) && (ifPostContainsSelections())) {