]> git.mxchange.org Git - mailer.git/blobdiff - inc/mails/birthday_mails.php
Double->single converted and fixed a display bug when theme is already installed
[mailer.git] / inc / mails / birthday_mails.php
index 609c65af8d1618c7a892f41d62b937ec87ea7f08..a1e81587ab33713651ce1d8092c4e8fcc87f253f 100644 (file)
@@ -45,7 +45,7 @@ if (!defined('__SECURITY')) {
 }
 
 // Do not execute when script is in CSS mode
-if (($GLOBALS['output_mode'] == 1) || (!isResetModeEnabled())) return;
+if ((getOutputMode() == 1) || (!isResetModeEnabled())) return;
 
 // Get current day (01 to 31), month (01 to 12) and year (4-digits year)
 $day   = date('d', time());
@@ -84,7 +84,7 @@ if (SQL_NUMROWS($result_birthday) > 0) {
 
                        // @TODO 4 is hard-coded here, should we move it out in config?
                        for ($idx = 0; $idx < 4; $idx++) {
-                               $content['check'] .= generateRandomCodde("8", mt_rand(0, $month.$day), $content['userid'], ($age * ($idx + 1)));
+                               $content['check'] .= generateRandomCode("8", mt_rand(0, $month.$day), $content['userid'], ($age * ($idx + 1)));
                        }
 
                        // Insert row into database