Typo 'referral'->'referal' fixed, more 'empty version' fixed
[mailer.git] / inc / modules / admin / what-list_user.php
index ce195ae973ff08d557b53dd04fee99ba947dd562..53bfce2af9f2f6f2795b85565f41f82a872125cb 100644 (file)
@@ -93,7 +93,7 @@ if (!isGetRequestElementSet('page'))   { setRequestGetElement('page'  , 1);
 $base = '[<a href="{?URL?}/modules.php?module=admin';
 
 if (isGetRequestElementSet('userid')) {
-       // Secure the user ID
+       // Secure the user id
        $userid = bigintval(getRequestElement('userid'));
 
        // Does the account exists?
@@ -186,7 +186,7 @@ LIMIT 1",
                        // Then overwrite country information
                        $content['country'] = generateCountryInfo($content['country_code']);
                } elseif ($content['country'] == 0) {
-                       // Zero ID???
+                       // Zero id???
                        $content['country'] = '???';
                }
 
@@ -328,7 +328,7 @@ LIMIT 1",
                        $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 . '&amp;what=list_refs&amp;userid=' . $content['userid'] . '">' . $content['refs'] . '</a>]';
@@ -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'] = '???';
                        }