// Are there some entries?
if (SQL_NUMROWS($result) == 1) {
- // Fetch ID
+ // Fetch id
list($content['primera_nickname']) = SQL_FETCHROW($result);
} // END - if
// Free result
SQL_FREERESULT($result);
- // Is there an ID?
+ // Is there an id?
if ((!empty($content['primera_nickname'])) && (!isGetRequestElementSet('mode'))) {
// Then use an other "mode"
setRequestGetElement('mode', 'list');
// And load all rows!
- $result = SQL_QUERY_ESC("SELECT `id`,`primera_account`,`primera_amount`,`primera_timestamp`,`primera_type` FROM `{?_MYSQL_PREFIX?}_user_primera` WHERE `userid` = %s ORDER BY `primera_timestamp` DESC",
+ $result = SQL_QUERY_ESC("SELECT `id`,`primera_account`,`primera_amount`,`primera_timestamp`,`primera_type` FROM `{?_MYSQL_PREFIX?}_user_primera` WHERE `userid`=%s ORDER BY `primera_timestamp` DESC",
array(getUserId()), __FILE__, __LINE__);
// Load all rows
// Are there some entries?
if (SQL_NUMROWS($result) == 1) {
- // Fetch ID
+ // Fetch id
list($content['primera_nickname']) = SQL_FETCHROW($result);
}
// Check input data depending on the mode and execute the requested mode
switch (getRequestElement('mode')) {
case 'pay': // Payout this exchange -> Primus
- // Is the user ID and password set?
+ // Is the user id and password set?
if (!isPostRequestElementSet(('primera_nickname'))) {
// Nothing entered in Primus nickname
loadTemplate('admin_settings_saved', false, getMessage('PRIMERA_MEMBER_EMPTY_USERNAME'));