X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_beg.php;h=b3d19ef974405dd29b3e2aa5198f859c9e5a89a5;hp=051cb49c62e3653f19686f972adb15e6ae746f1c;hb=a50f5113fe25ed5f125e3377914a5c0d84b4c1ae;hpb=88624bbf36f5b3cb5ef796a662853a6d38c4ce64
diff --git a/inc/modules/admin/what-list_beg.php b/inc/modules/admin/what-list_beg.php
index 051cb49c62..b3d19ef974 100644
--- a/inc/modules/admin/what-list_beg.php
+++ b/inc/modules/admin/what-list_beg.php
@@ -75,27 +75,27 @@ ORDER BY beg_points DESC, last_online DESC, userid",
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