]> git.mxchange.org Git - mailer.git/blobdiff - inc/mails/beg_mails.php
Better only check on daily reset
[mailer.git] / inc / mails / beg_mails.php
index fb2292c127152042d77bc9c35f9d57aeacfca76b..7c5217a3d94838e09f61d24685ee9353784f3c0f 100644 (file)
@@ -47,11 +47,11 @@ if (!defined('__SECURITY')) {
 }
 
 // Create timemark from saved month
-$mark = mktime(0, 0, 0, getLastMonth(), getDay(), getYear());
+$mark = mktime(0, 0, 0, getLastMonthly(), getDay(), getYear());
 $sql = ''; $mode = '';
 
 // Shall I sent activation or deactivation mail?
-$sql = "SELECT `userid`,`email` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE (`beg_rallye_enable_notify` ";
+$sql = "SELECT `userid`, `email` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE (`beg_rallye_enable_notify` ";
 switch (getBegRallye()) {
        case 'Y': // Begging rallye is activated
                if (isBegRallyeEnableNotifyEnabled()) {
@@ -117,7 +117,7 @@ LIMIT 1",
                                ), __FILE__, __LINE__);
 
                        // Load email template and send it to the user!
-                       if ($sentBonusMails === true) {
+                       if ($sentBonusMails === TRUE) {
                                // Add userid to queue
                                array_push($userids, $content['userid']);
                        } else {
@@ -128,7 +128,7 @@ LIMIT 1",
                } // END - while
 
                // Shall I send out bonus mails?
-               if ($sentBonusMails === true) {
+               if ($sentBonusMails === TRUE) {
                        // Okay, make array to string
                        $receiver = implode(';', $userids);