login bonus will no longer be payed when turned off, "Y/N" rewritten to 'Y/N'
[mailer.git] / inc / libs / doubler_functions.php
index 057c76bd039b6131fccd2cc889db66f7af01ffb1..d6d3d23431722cf816bf39ae67a36eba91828fb9 100644 (file)
@@ -38,7 +38,7 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
        require($INC);
 }
 //
-function DOUBLER_GENERATE_TABLE($uid="0", $done="N", $ref="N", $sort="ASC")
+function DOUBLER_GENERATE_TABLE($uid="0", $done='N', $ref='N', $sort="ASC")
 {
        global $CONFIG;
        if (empty($cnt)) $cnt = "0";
@@ -57,7 +57,7 @@ function DOUBLER_GENERATE_TABLE($uid="0", $done="N", $ref="N", $sort="ASC")
                $NOT_FOUND = DOUBLER_GUEST_NO_ENTRIES_FOUND;
        }
 
-       if (($done == "Y") && ($sort == "ASC"))
+       if (($done == 'Y') && ($sort == "ASC"))
        {
                // Already payed out points (latest payouts first)
                $limit = $CONFIG['doubler_display_old'];
@@ -130,13 +130,13 @@ function DOUBLER_GET_TOTAL_POINTS_LEFT()
        // Initialize variables
        $points = "0";
 
-       if ($CONFIG['doubler_own'] == "Y")
+       if ($CONFIG['doubler_own'] == 'Y')
        {
                // Take points from doubler's own account
                $points += $CONFIG['doubler_points'] - $CONFIG['doubler_used'];
        }
 
-       if ($CONFIG['doubler_jackpot'] == "Y")
+       if ($CONFIG['doubler_jackpot'] == 'Y')
        {
                // Load jackpot
                $result = SQL_QUERY("SELECT points FROM "._MYSQL_PREFIX."_jackpot WHERE ok='ok' LIMIT 1", __FILE__, __LINE__);