]> git.mxchange.org Git - mailer.git/blobdiff - inc/mails/beg_mails.php
Fix for surfbar if no account has depleted points
[mailer.git] / inc / mails / beg_mails.php
index 3247190093cd75d992717ee33ec1c86050b4b916..37272d712ec54187bb41c2cb1918b127e3b4f3fd 100644 (file)
@@ -41,7 +41,7 @@ if (!defined('__SECURITY')) {
 
 // Do not execute when script is in CSS mode
 global $CSS;
-if (($CSS == 1) || (!defined('__DAILY_RESET'))) return;
+if ($CSS == 1) return;
 
 // Create timemark from saved month
 $mark = mktime(0, 0, 0, $_CONFIG['last_month'], date("d", time()), date('Y', time()));
@@ -108,8 +108,7 @@ if (!empty($SQL))
                $MAIL_MODE = (($_CONFIG['beg_notify_bonus'] > 0) && ($MODE == "en") && (EXT_IS_ACTIVE("bonus")));
 
                // Generate subject line
-               $eval = "\$SUBJECT = BEG_RALLYE_".strtoupper($MODE)."_NOTIFY;";
-               eval($eval);
+               $SUBJECT = constant('BEG_RALLYE_'.strtoupper($MODE).'_NOTIFY');
 
                // Load message body for bonus mails
                $MSG = LOAD_EMAIL_TEMPLATE("beg_en_notify_body", "", "{PER}uid{PER}");
@@ -133,7 +132,7 @@ SET beg_ral_notify='%s', beg_ral_%s_notify='%s' WHERE userid=%s LIMIT 1",
                        {
                                // Send normal notification mail to the members
                                $MSG = LOAD_EMAIL_TEMPLATE("beg_".$MODE."_notify", array(), $uid);
-                               SEND_EMAIL($email, $SUBJECT, $MSG);
+                               SEND_EMAIL($uid, $SUBJECT, $MSG);
                        }
                }