]> git.mxchange.org Git - mailer.git/blobdiff - inc/mails/beg_mails.php
All database names are now 'back-ticked' and constant _MYSQL_PREFIX is wrapped. Partl...
[mailer.git] / inc / mails / beg_mails.php
index cd43f5df05bea360a53f0b314466d2a4ac599d0b..defa215d4489986915d322c99fac2725af98b2e8 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
@@ -115,7 +115,7 @@ if (!empty($SQL)) {
                // Okay lets notify all users!
                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",