-if (!empty($_GET['admin'])) {
- // Secure ID number
- $aid = bigintval($_GET['admin']);
- $_POST['edit'] = "1";
- $_POST['sel'][$aid] = "1";
-}
+if (isGetRequestParameterSet('admin')) {
+ // Secure id number
+ $adminId = bigintval(getRequestParameter('admin'));
+
+ // Set required fields
+ setPostRequestParameter('edit', 1);
+ setPostRequestParameter('sel', array($adminId => 1));
+} // END - if