login bonus will no longer be payed when turned off, "Y/N" rewritten to 'Y/N'
[mailer.git] / inc / mails / birthday_mails.php
index 2c3f047dbb4b388d97ec062c3ba603cefc9f718c..ec8317a92629a5578b653c9d23fbdce75efd9d4e 100644 (file)
@@ -49,11 +49,11 @@ if ($CSS == 1) return;
 // Get current day (01 to 31), month (01 to 12) and year (4-digits year)
 $DAY   = date("d", time());
 $MONTH = date("m", time());
-$YEAR  = date("Y", time());
+$YEAR  = date('Y', time());
 
 // Shall I include only active members?
 $ADD = "%s"; $VALUE = "";
-if (($CONFIG['birthday_active']) && (EXT_IS_ACTIVE("autopurge")) && ($CONFIG['ap_in_since'] > 0) && ($CONFIG['ap_inactive'] == "Y"))
+if (($CONFIG['birthday_active']) && (EXT_IS_ACTIVE("autopurge")) && ($CONFIG['ap_in_since'] > 0) && ($CONFIG['ap_inactive'] == 'Y'))
 {
        $ADD = " AND last_online >= %d";
        $VALUE = bigintval(time() - $CONFIG['ap_in_since']);