More SQL rewrites, TODO: Put all table and column names in backticks (`)
[mailer.git] / inc / modules / admin / what-list_newsletter.php
index 8892c5ab443fe399508e7775c591c525898b614f..ef2989fa916ef3a064fdd85ff1574a4cb2086439 100644 (file)
@@ -44,7 +44,7 @@ if ((!empty($_POST['uid'])) && (!empty($_POST['id'])))
 {
        // Update database...
        // First user's account
-       $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET nl_until='".time()."+nl_timespan', nl_receive='N', nl_timespan='0' WHERE userid=%s LIMIT 1",
+       $result = SQL_QUERY_ESC("UPDATE `"._MYSQL_PREFIX."_user_data` SET nl_until='".time()."+nl_timespan', nl_receive='N', nl_timespan='0' WHERE userid=%s LIMIT 1",
         array(bigintval($_POST['uid'])), __FILE__, __LINE__);
 
        // Next the task system...