X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmails%2Fbirthday_mails.php;h=02d08acb9960e7a6641f4228e81a01bbbbcae1ab;hp=c8dcf4e935d803825df5832cd89fbc1852cff830;hb=a090e351c49fe021fb3064325694da03402332e0;hpb=f212df3d9d1d3c7f8632040130be9e7160980de6 diff --git a/inc/mails/birthday_mails.php b/inc/mails/birthday_mails.php index c8dcf4e935..02d08acb99 100644 --- a/inc/mails/birthday_mails.php +++ b/inc/mails/birthday_mails.php @@ -40,7 +40,7 @@ if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); -} elseif (!EXT_IS_ACTIVE("birthday")) { +} elseif (!EXT_IS_ACTIVE('birthday')) { return; } @@ -53,8 +53,8 @@ $MONTH = date("m", time()); $YEAR = date('Y', time()); // Shall I include only active members? -$add = "%s"; $VALUE = ""; -if ((getConfig('birthday_active')) && (EXT_IS_ACTIVE("autopurge")) && (getConfig('autopurge_inactive') == "Y") && (getConfig('ap_inactive_since') > 0)) { +$add = "%s"; $VALUE = ''; +if ((getConfig('birthday_active')) && (EXT_IS_ACTIVE('autopurge')) && (getConfig('autopurge_inactive') == 'Y') && (getConfig('ap_inactive_since') > 0)) { $add = " AND last_online >= (UNIX_TIMESTAP() - %s)"; $VALUE = getConfig('ap_inactive_since'); } @@ -80,7 +80,7 @@ if (SQL_NUMROWS($result_birthday) > 0) { // Add more entries to the array $content['age'] = $AGE; $content['points'] = TRANSLATE_COMMA(getConfig('birthday_points')); - $content['check'] = ""; + $content['check'] = ''; // @TODO 4 is hard-coded here, should we move it out in config? for ($idx = 0; $idx < 4; $idx++) {