Previous fix fixed, a lot constants rewritten (unfinished)
[mailer.git] / inc / mails / beg_mails.php
index defa215d4489986915d322c99fac2725af98b2e8..f0aa99ed6715e0c6f54638b357748433761992d4 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 (beg_ral_notify ";
+$SQL = "SELECT userid, email FROM `{!_MYSQL_PREFIX!}_user_data` WHERE (beg_ral_notify ";
 switch (getConfig('beg_rallye'))
 {
 case "Y": // Begging rallye is activated
@@ -113,9 +113,9 @@ if (!empty($SQL)) {
                $RECEIVER = ""; $UIDs = array();
 
                // 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 beg_ral_notify='%s', beg_ral_%s_notify='%s'
 WHERE userid=%s
 LIMIT 1",