]> git.mxchange.org Git - mailer.git/blobdiff - inc/mails/birthday_mails.php
A lot rewrites from double-quote to single-quote, some fixes for extension handling...
[mailer.git] / inc / mails / birthday_mails.php
index c8dcf4e935d803825df5832cd89fbc1852cff830..02d08acb9960e7a6641f4228e81a01bbbbcae1ab 100644 (file)
@@ -40,7 +40,7 @@
 if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 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;
 }
 
        return;
 }
 
@@ -53,8 +53,8 @@ $MONTH = date("m", time());
 $YEAR  = date('Y', time());
 
 // Shall I include only active members?
 $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');
 }
        $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'));
                        // 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++) {
 
                        // @TODO 4 is hard-coded here, should we move it out in config?
                        for ($idx = 0; $idx < 4; $idx++) {