]> 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 902997e72954985f496c63b83d8f25708e7af677..7c5217a3d94838e09f61d24685ee9353784f3c0f 100644 (file)
@@ -47,7 +47,7 @@ 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?
@@ -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);