- if (!empty($_GET['ref'])) $ref = secureString($_GET['ref']);
- elseif (!empty($_GET['refid'])) $ref = secureString($_GET['refid']);
+ if (REQUEST_ISSET_GET(('ref'))) $ref = REQUEST_GET('ref');
+ elseif (REQUEST_ISSET_GET(('refid'))) $ref = REQUEST_GET('refid');