X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_user.php;h=f369b3a38b97a8abd1ed69e5c5f5d76450d1fc07;hb=c1671a3b6c02326b471916a28f4177c453871f51;hp=48c1c15878e2c9a49cc8bd2900684421f2e6bad1;hpb=f2c43b993e03f90202044a0c2ea0abd0866ec6ee;p=mailer.git
diff --git a/inc/modules/admin/what-list_user.php b/inc/modules/admin/what-list_user.php
index 48c1c15878..f369b3a38b 100644
--- a/inc/modules/admin/what-list_user.php
+++ b/inc/modules/admin/what-list_user.php
@@ -1,7 +1,7 @@
0) {
$content['click_rate'] = translateComma($content['mails_confirmed'] / $content['emails_received'] * 100);
} // END - if
@@ -185,7 +185,7 @@ LIMIT 1",
if (isExtensionActive('country')) {
// Then overwrite country information
$content['country'] = generateCountryInfo($content['country_code']);
- } elseif ($content['country'] == 0) {
+ } 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'] . ']';