login bonus will no longer be payed when turned off, "Y/N" rewritten to 'Y/N'
[mailer.git] / inc / mails / beg_mails.php
index 2391b284d9ad4d8f627b5d58cc07384b761e655d..9363f83e573729b33707486f5541b0000498026f 100644 (file)
@@ -47,15 +47,15 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
 if ($CSS == 1) return;
 
 // Create timemark from saved month
-$mark = mktime(0, 0, 0, $CONFIG['beg_month'], date("d", time()), date("Y", time()));
+$mark = mktime(0, 0, 0, $CONFIG['beg_month'], date("d", time()), date('Y', time()));
 $SQL = ""; $MODE = "";
 
 // Shall I sent activation or deactivation mail?
 $SQL = "SELECT userid, email FROM "._MYSQL_PREFIX."_user_data WHERE (beg_ral_notify ";
 switch ($CONFIG['beg_rallye'])
 {
-case "Y": // Begging rallye is activated
-       if ($CONFIG['beg_ral_en_notify'] == "Y")
+case 'Y': // Begging rallye is activated
+       if ($CONFIG['beg_ral_en_notify'] == 'Y')
        {
                // Okay, let's check for member accounts
                $SQL .= "= 0 OR (beg_ral_notify > 0 AND beg_ral_en_notify < beg_ral_di_notify)";
@@ -68,8 +68,8 @@ case "Y": // Begging rallye is activated
        }
        break;
 
-case "N": // Begging rallye is deactivated
-       if ($CONFIG['beg_ral_di_notify'] == "Y")
+case 'N': // Begging rallye is deactivated
+       if ($CONFIG['beg_ral_di_notify'] == 'Y')
        {
                // Okay, let's check for member accounts
                $SQL .= " > 0 AND beg_ral_di_notify < beg_ral_en_notify";