X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_user.php;h=53bf9e2d8975294f912633da220a25372026b889;hb=0e269568bd666186509e98594e83bac199ac26da;hp=ce195ae973ff08d557b53dd04fee99ba947dd562;hpb=c2e17d983fcbc0c3bd1dd37908d87c678f0367df;p=mailer.git diff --git a/inc/modules/admin/what-list_user.php b/inc/modules/admin/what-list_user.php index ce195ae973..53bf9e2d89 100644 --- a/inc/modules/admin/what-list_user.php +++ b/inc/modules/admin/what-list_user.php @@ -93,7 +93,7 @@ if (!isGetRequestElementSet('page')) { setRequestGetElement('page' , 1); $base = '[ 0) { $content['click_rate'] = translateComma($content['mails_confirmed'] / $content['emails_received'] * 100); } // END - if @@ -185,8 +185,8 @@ LIMIT 1", if (isExtensionActive('country')) { // Then overwrite country information $content['country'] = generateCountryInfo($content['country_code']); - } elseif ($content['country'] == 0) { - // Zero ID??? + } elseif ($content['country'] == '0') { + // Zero id??? $content['country'] = '???'; } @@ -247,7 +247,7 @@ LIMIT 1", $result_master = SQL_QUERY($sql, __FILE__, __LINE__); // Calculate page count (0.5 fixes a bug with page count) - if (getConfig('user_limit') == 0) { + if (getConfig('user_limit') == '0') { setConfigEntry('user_limit', 100); loadTemplate('admin_settings_saved', false, getMessage('EXTENSION_WARNING_USER_LIMIT')); } // END - if @@ -286,7 +286,7 @@ LIMIT 1", // @TODO Rewrite this into a filter if (isExtensionActive('nickname')) { // Nickname extension found - define('__NICKNAME_TH', " {--NICKNAME--}"); + define('__NICKNAME_TH', " {--NICKNAME--}"); } else { // Not found define('__NICKNAME_TH', ''); @@ -309,12 +309,12 @@ LIMIT 1", if ((empty($content['nickname'])) || ($content['nickname'] == $content['userid'])) $content['nickname'] = '---'; // Calculate total points - $pointsTotal = countSumTotalData($content['userid'], 'user_points', 'points') - countSumTotalData($content['userid'], 'user_data', 'used_points'); + $content['points'] = countSumTotalData($content['userid'], 'user_points', 'points') - countSumTotalData($content['userid'], 'user_data', 'used_points'); // Clickrate - $clickRate = 0; + $content['rate'] = '0'; if ($content['emails_received'] > 0) { - $clickRate = $content['mails_confirmed'] / $content['emails_received'] * 100; + $content['rate'] = $content['mails_confirmed'] / $content['emails_received'] * 100; } // END - if // Transfer data to array @@ -323,12 +323,12 @@ LIMIT 1", $content['gender'] = translateGender($content['gender']); $content['email'] = '[' . $content['email'] . ']'; $content['alinks'] = generateMemberAdminActionLinks($content['userid'], $content['status']); - $content['points'] = translateComma($pointsTotal); - $content['rate'] = translateComma($clickRate); + $content['points'] = translateComma($content['points']); + $content['rate'] = translateComma($content['rate']); $content['locked'] = translateComma(countSumTotalData($content['userid'], 'user_points', 'locked_points')); $content['lock_timestamp'] = generateDateTime($content['lock_timestamp'], 2); $content['status'] = translateUserStatus($content['status']); - $content['refs'] = countSumTotalData($content['userid'], 'refsystem', 'counter'); + $content['refs'] = countSumTotalData($content['userid'], 'user_refs', 'id', 'userid', true); // If we have at least one referal, make it clickable to referal list if ($content['refs'] > 0) $content['refs'] = $base . '&what=list_refs&userid=' . $content['userid'] . '">' . $content['refs'] . ']'; @@ -342,7 +342,7 @@ LIMIT 1", // Then overwrite country information $content['country'] = generateCountryInfo($content['country_code']); } elseif ($content['country'] == '') { - // Zero ID??? + // Zero id??? $content['country'] = '???'; }