X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-primera.php;h=83b76264eb492b4d937bbe812467f6f10ce9f68c;hp=e95ef39dff942442ab06395c9c1947e7ed31c56e;hb=d3c4fdd9bfab35389e1a5ff48f3952d527c7b4bb;hpb=c2e17d983fcbc0c3bd1dd37908d87c678f0367df diff --git a/inc/modules/member/what-primera.php b/inc/modules/member/what-primera.php index e95ef39dff..83b76264eb 100644 --- a/inc/modules/member/what-primera.php +++ b/inc/modules/member/what-primera.php @@ -75,20 +75,20 @@ if (!isGetRequestElementSet('mode')) { // 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 @@ -146,7 +146,7 @@ if (getRequestElement('mode') == 'pay') { // Are there some entries? if (SQL_NUMROWS($result) == 1) { - // Fetch ID + // Fetch id list($content['primera_nickname']) = SQL_FETCHROW($result); } @@ -163,7 +163,7 @@ if ((isFormSent()) && (isGetRequestElementSet('mode'))) { // 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'));