]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/bonus_functions.php
SQL query and inconsistencies fixed, TODOs.txt updated
[mailer.git] / inc / libs / bonus_functions.php
index c348118bbfd3169eccee73e8fac7e9c800984bd1..4c99ef6a3e51e920c5d6cd653d6701252fd6f78f 100644 (file)
@@ -132,7 +132,7 @@ function addBonusRanks ($data, $type, $userid) {
                // Transfer data to template
                $GLOBALS['ranking_content']['yr_level']  = $GLOBALS['ranking_content']['level'];
                $GLOBALS['ranking_content']['yr_points'] = translateComma($GLOBALS['ranking_content']['points']);
-               $GLOBALS['ranking_content']['yr_tmark']  = generateDateTime($GLOBALS['ranking_content']['timemark'], '1');
+               $GLOBALS['ranking_content']['yr_tmark']  = generateDateTime($GLOBALS['ranking_content']['timemark'], 1);
 
                // Load template
                $GLOBALS['ranking_content']['own'] = loadTemplate('show_bonus_yr', true, $GLOBALS['ranking_content']);
@@ -176,7 +176,7 @@ LIMIT 1",
                                        $nick = getNickname($rows['userid']);
 
                                        // Is it not empty? Then use it
-                                       if (!empty($nick)) $rows['userid'] = $nick . '(' . $rows['userid'] . ')';
+                                       if (!empty($nick)) $rows['userid'] = $nick;
                                } // END - if
 
                                // Translate comma
@@ -225,7 +225,7 @@ function handleBonusPoints ($mode) {
        if (getConfig('bonus_active') != 'Y') return;
 
        // Switch to jackpot-mode when no UID is supplied but userid-mode is selected
-       if ((getConfig('bonus_mode') == 'UID') && (getConfig('bonus_userid') == '0') && (isExtensionActive('jackpot'))) {
+       if ((getConfig('bonus_mode') == 'UID') && (getConfig('bonus_userid') == 0) && (isExtensionActive('jackpot'))) {
                // Update database & config
                updateConfiguration('bonus_mode', 'JACKPOT');
        } // END - if