-if (!REQUEST_ISSET_GET('mode')) {
- // Get referal id
- $content['refid'] = getConfig(('primera_refid'));
-
- // Get Primus id
- $result = SQL_QUERY_ESC("SELECT `primera_userid` FROM `{!_MYSQL_PREFIX!}_user_data` WHERE `userid`=%s LIMIT 1",
- array(getUserId()), __FILE__, __LINE__);
-
- // Are there some entries?
- if (SQL_NUMROWS($result) == 1) {
- // Fetch ID
- list($content['primera_nickname']) = SQL_FETCHROW($result);
- } // END - if
-
- // Free result
- SQL_FREERESULT($result);
-
- // Is there an ID?
- if ((!empty($content['primera_nickname'])) && (!REQUEST_ISSET_GET('mode'))) {
- // Then use an other "mode"
- REQUEST_SET_GET('mode', 'list');
+if (!isGetRequestElementSet('do')) {
+ // Is there an id?
+ if ((!empty($content['primera_nickname'])) && (!isGetRequestElementSet('do'))) {
+ // Then list all entries
+ setGetRequestElement('do', 'list');