]> git.mxchange.org Git - mailer.git/blobdiff - inc/profile-updte.php
More SQL rewrites, TODO: Put all table and column names in backticks (`)
[mailer.git] / inc / profile-updte.php
index 1e29d2eb7db30175cc85f1354b6df575a52f4747..b2aa58ab288f733834b0a1bbf50b6c8f7e8eec0d 100644 (file)
@@ -70,7 +70,7 @@ ORDER BY userid", array($_CONFIG['profile_update'], $_CONFIG['resend_profile_upd
                        SEND_EMAIL($DATA[1], PROFILE_OUTDATED, $msg);
 
                        // Update profile data
-                       $result_update = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET last_profile_sent=UNIX_TIMESTAMP(), notified='Y' WHERE userid=%s LIMIT 1",
+                       $result_update = SQL_QUERY_ESC("UPDATE `"._MYSQL_PREFIX."_user_data` SET last_profile_sent=UNIX_TIMESTAMP(), notified='Y' WHERE userid=%s LIMIT 1",
                         array(bigintval($DATA[0])), __FILE__, __LINE__);
                }
        }