Previous fix fixed, a lot constants rewritten (unfinished)
[mailer.git] / inc / mails / bonus_mails.php
index e565d624e502a451807e199a1a2b6de55841fa83..48590a115c17b9a6aaa97a1287e5bb82aff20327 100644 (file)
@@ -48,7 +48,7 @@ $mark = mktime(0, 0, 0, getConfig('last_month'), date("d", time()), date('Y', ti
 $SQL = ""; $MODE = "";
 
 // Shall I sent activation or deactivation mail?
-$SQL = "SELECT userid, email FROM `{!MYSQL_PREFIX!}_user_data` WHERE (bonus_ral_notify ";
+$SQL = "SELECT userid, email FROM `{!_MYSQL_PREFIX!}_user_data` WHERE (bonus_ral_notify ";
 switch (getConfig('bonus_active'))
 {
 case "Y": // Active rallye is activated
@@ -92,9 +92,9 @@ if (!empty($SQL)) {
        $result_main = SQL_QUERY($SQL, __FILE__, __LINE__);
        if (SQL_NUMROWS($result_main) > 0) {
                // Okay lets notify all users!
-               while(list($uid, $email) = SQL_FETCHROW($result_main)) {
+               while (list($uid, $email) = SQL_FETCHROW($result_main)) {
                        // Update account
-                       SQL_QUERY_ESC("UPDATE `{!MYSQL_PREFIX!}_user_data`
+                       SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_data`
 SET bonus_ral_notify='%s', bonus_ral_%s_notify='%s'
 WHERE userid=%s
 LIMIT 1",