- $content['points'] = $points;
- $content['min_points'] = TRANSLATE_COMMA(getConfig('primera_min_payout'));
-
- // Get Primera id
- $content['primera_nickname'] = '';
- $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);
- }
-
- // Free result
- SQL_FREERESULT($result);