More SQL rewrites, TODO: Put all table and column names in backticks (`)
[mailer.git] / inc / modules / member / what-themes.php
index 5e6a5fcfc77c54fa20e9fab2c7fd36810abd552a..ca190695b59adb50706c014bc5983efb6f463adb 100644 (file)
@@ -47,7 +47,7 @@ ADD_DESCR("member", __FILE__);
 
 if (!empty($_POST['member_theme'])) {
        // Save theme to member's profile
-       $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET curr_theme='%s' WHERE userid=%s LIMIT 1",
+       $result = SQL_QUERY_ESC("UPDATE `"._MYSQL_PREFIX."_user_data` SET curr_theme='%s' WHERE userid=%s LIMIT 1",
          array($_POST['member_theme'], $GLOBALS['userid']), __FILE__, __LINE__);
 
        // Set new theme for guests