X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_beg.php;h=9ec24929a60d9068983e0097f5fbc0f213a59c62;hb=c1671a3b6c02326b471916a28f4177c453871f51;hp=f665ea2209063ff8f8077d26f2d0b82c92f1118b;hpb=dbb6aa4eaeff7c3bab27f143d881781380d43d41;p=mailer.git
diff --git a/inc/modules/admin/what-list_beg.php b/inc/modules/admin/what-list_beg.php
index f665ea2209..9ec24929a6 100644
--- a/inc/modules/admin/what-list_beg.php
+++ b/inc/modules/admin/what-list_beg.php
@@ -1,6 +1,6 @@
0) {
// List users
- $OUT = '';$SW = 2; $cnt = 1; $total = 0;
+ $OUT = '';$SW = 2; $cnt = 1; $total = '0';
while ($content = SQL_FETCHARRAY($result)) {
// Init variables
$WIN1 = ''; $WIN2 = '';
+
+ // Maybe he can win his active beg?
if ($cnt <= getConfig('beg_ranks')) {
- // Maybe he can win his active beg?
- $WIN1 = "";
- $WIN2 = "";
+ // Mark him
+ $WIN1 = '';
+ $WIN2 = '';
} // END - if
// Prepare content
- // @TODO Rewrite templates so s/family will be replaced by surname/family
- // @TODO to shorten this block. Please also do so with userid->userid
$content = array(
- 'userid' => $content['userid'],
- 'email' => generateEmailLink($content['email'], 'user_data'),
- 'gender' => translateGender($content['gender']),
- 'surname' => $content['surname'],
- 'family' => $content['family'],
- 'turbo' => translateComma($content['beg_points']),
- 'last_online' => generateDateTime($content['last_online'], 2),
- 'sw' => $SW,
- 'win1' => $WIN1,
- 'win2' => $WIN2,
- 'cnt' => $cnt,
+ 'userid' => $content['userid'],
+ 'email' => generateEmailLink($content['email'], 'user_data'),
+ 'gender' => translateGender($content['gender']),
+ 'surname' => $content['surname'],
+ 'family' => $content['family'],
+ 'turbo' => translateComma($content['beg_points']),
+ 'last_online' => generateDateTime($content['last_online'], 2),
+ 'sw' => $SW,
+ 'win1' => $WIN1,
+ 'win2' => $WIN2,
+ 'cnt' => $cnt,
);
// Load template and add it