]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/task_functions.php
login bonus will no longer be payed when turned off, "Y/N" rewritten to 'Y/N'
[mailer.git] / inc / libs / task_functions.php
index 9140cd191e85e3aeb3cb6e0042ee853e88d1bd0a..730812bf897d06b814a334c9ea8fd59d2e74063b 100644 (file)
@@ -336,11 +336,11 @@ ORDER BY d.userid";
                if (GET_EXT_VERSION("bonus") >= "0.6.9") {
                        // Add more bonus points here
                        $USE = "(0";
-                       if ($CONFIG['bonus_click_yn'] == "Y") $USE .= " + turbo_bonus";
-                       if ($CONFIG['bonus_login_yn'] == "Y") $USE .= " + login_bonus";
-                       if ($CONFIG['bonus_order_yn'] == "Y") $USE .= " + bonus_order";
-                       if ($CONFIG['bonus_stats_yn'] == "Y") $USE .= " + bonus_stats";
-                       if ($CONFIG['bonus_ref_yn']   == "Y") $USE .= " + bonus_ref";
+                       if ($CONFIG['bonus_click_yn'] == 'Y') $USE .= " + turbo_bonus";
+                       if ($CONFIG['bonus_login_yn'] == 'Y') $USE .= " + login_bonus";
+                       if ($CONFIG['bonus_order_yn'] == 'Y') $USE .= " + bonus_order";
+                       if ($CONFIG['bonus_stats_yn'] == 'Y') $USE .= " + bonus_stats";
+                       if ($CONFIG['bonus_ref_yn']   == 'Y') $USE .= " + bonus_ref";
                        $USE .= ")";
                } else {
                        // Old version ???
@@ -349,7 +349,7 @@ ORDER BY d.userid";
 
                // Autopurge installed?
                $LAST = ""; $ONLINE = "";
-               if ((EXT_IS_ACTIVE("autopurge")) && ($CONFIG['ap_inactive'] == "Y") && ($CONFIG['ap_in_since'] > 0)) {
+               if ((EXT_IS_ACTIVE("autopurge")) && ($CONFIG['ap_inactive'] == 'Y') && ($CONFIG['ap_in_since'] > 0)) {
                        // Use last online timestamp to keep inactive members away from here
                        $LAST   = " AND last_online >= ";
                        $ONLINE = bigintval(time() - $CONFIG['ap_in_since']);
@@ -368,7 +368,7 @@ ORDER BY active_bonus DESC, userid";
 
                // Autopurge installed?
                $LAST = ""; $ONLINE = "";
-               if ((EXT_IS_ACTIVE("autopurge")) && ($CONFIG['ap_inactive'] == "Y") && ($CONFIG['ap_in_since'] > 0)) {
+               if ((EXT_IS_ACTIVE("autopurge")) && ($CONFIG['ap_inactive'] == 'Y') && ($CONFIG['ap_in_since'] > 0)) {
                        // Use last online timestamp to keep inactive members away from here
                        $LAST   = " AND last_online >= ";
                        $ONLINE = bigintval(time() - $CONFIG['ap_in_since']);