A lot eval() commands rewritten to constant() function
[mailer.git] / inc / mails / bonus_mails.php
index ad84a3454d4148e672fb94478778ba1391027227..0e4e19224b722e24422418f9b275fa55a9b3fbad 100644 (file)
@@ -82,8 +82,7 @@ if (!empty($SQL)) {
        $MAIL_MODE = (($_CONFIG['bonus_notify_points'] > 0) && ($MODE == "en") && (EXT_IS_ACTIVE("bonus")));
 
        // Generate subject line
-       $eval = "\$SUBJECT = BONUS_RALLYE_".strtoupper($MODE)."_NOTIFY;";
-       eval($eval);
+       $SUBJECT = constant('BONUS_RALLYE_'.strtoupper($MODE).'_NOTIFY');
 
        // Load message body for bonus mails
        $MSG = LOAD_EMAIL_TEMPLATE("bonus_en_notify_body", "", "{PER}uid{PER}");
@@ -108,7 +107,7 @@ SET bonus_ral_notify='%s', bonus_ral_%s_notify='%s' WHERE userid=%s LIMIT 1",
                                $MSG = LOAD_EMAIL_TEMPLATE("bonus_".$MODE."_notify", array(), $uid);
                                SEND_EMAIL($uid, $SUBJECT, $MSG);
                        }
-               }
+               } // END - if
 
                // Shall I send out bonus mails?
                if ($MAIL_MODE) {