-if (!isset($_GET['mode'])) {
- // Get referal id
- $content['refid'] = bigintval($_CONFIG['primera_refid']);
-
- // Get Primus id
- $result = SQL_QUERY_ESC("SELECT primera_userid FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1",
- array($GLOBALS['userid']), __FILE__, __LINE__);
-
- // Are there some entries?
- if (SQL_NUMROWS($result) == 1) {
- // Fetch ID
- list($content['primus_nickname']) = SQL_FETCHROW($result);
- } // END - if
-
- // Free result
- SQL_FREERESULT($result);
-
- // Is there an ID?
- if ((!empty($content['primus_nickname'])) && (!isset($_GET['mode']))) {
+if (!isGetRequestParameterSet('mode')) {
+ // Is there an id?
+ if ((!empty($content['primera_nickname'])) && (!isGetRequestParameterSet('mode'))) {