// 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
while ($data = SQL_FETCHARRAY($result)) {
// Prepare data for output
$rowContent = array(
- 'stamp' => generateDateTime($data['primera_timestamp'], '2'),
+ 'stamp' => generateDateTime($data['primera_timestamp'], 2),
'points' => translateComma($data['primera_amount']),
'acc' => SQL_ESCAPE($data['primera_account']),
'status' => PRIMERA_TRANSFER_STATUS($data['primera_type']),
// 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'));
$locked = true;
// Shall I 'pay' the referal points imidiately?
- if (getConfig('ref_payout') == '0') {
+ if (getConfig('ref_payout') == 0) {
// Yes, 'pay' it now
$locked = false;
} // END - if