login bonus will no longer be payed when turned off, "Y/N" rewritten to 'Y/N'
[mailer.git] / inc / extensions / ext-bonus.php
index 4520b240b2dd55802eaae9ecf4ae24c1255cfd40..db04202913d83633a8a4ca665fa5c384bb09b31d 100644 (file)
@@ -372,7 +372,7 @@ KEY userid (userid)
                if ($curr == "00") $curr = "12";
 
                // Generate timemark...
-               $mark = mktime(0, 0, 0, $curr, 1, date("Y", time()));
+               $mark = mktime(0, 0, 0, $curr, 1, date('Y', time()));
 
                // Update accounts which are not active last months
                $SQLs[] = "UPDATE "._MYSQL_PREFIX."_user_data
@@ -571,7 +571,7 @@ default: // Do stuff when extension is loaded
        if (defined('__DAILY_RESET') && (!DEBUG_MODE) && ($CSS != 1))
        {
                // Daily reset was run so let's check if active rallye is activated
-               if ($CONFIG['bonus_active'] == "Y")
+               if ($CONFIG['bonus_active'] == 'Y')
                {
                        // Run active rallye
                        if($CONFIG['bonus_stats'] > 0) $INC_POOL[] = PATH."inc/stats_bonus.php";
@@ -585,7 +585,7 @@ default: // Do stuff when extension is loaded
        }
 
        // Check for bonus rallye is active and send mails out
-       if (($CONFIG['bonus_active'] == "Y") && ($CONFIG['bonus_new_mem_notify'] == "Y"))
+       if (($CONFIG['bonus_active'] == 'Y') && ($CONFIG['bonus_new_mem_notify'] == 'Y'))
        {
                // Include file for sending out mails
                $INC_POOL[] = PATH."inc/mails/bonus_mails.php";
@@ -597,7 +597,7 @@ default: // Do stuff when extension is loaded
 $EXT_LANG_PREFIX = "bonus";
 
 // Extension is always active?
-$EXT_ALWAYS_ACTIVE = "N";
+$EXT_ALWAYS_ACTIVE = 'N';
 
 //
 ?>