- ADD_SQL(SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_mod_reg` SET `title`='%s', `locked`='%s', `hidden`='%s', `admin_only`='%s', `mem_only`='%s' WHERE `id`=%s LIMIT 1",
- array(
- REQUEST_POST('title', $id),
- REQUEST_POST('locked', $id),
- REQUEST_POST('hidden', $id),
- REQUEST_POST('admin', $id),
- REQUEST_POST('member', $id),
- $id
- ), __FILE__, __LINE__, false));
+ addSql(SQL_QUERY_ESC("UPDATE
+ `{?_MYSQL_PREFIX?}_mod_reg`
+SET
+ `title`='%s',
+ `locked`='%s',
+ `hidden`='%s',
+ `admin_only`='%s',
+ `mem_only`='%s'
+WHERE
+ `id`=%s
+LIMIT 1",
+ array(
+ postRequestElement('title', $id),
+ postRequestElement('locked', $id),
+ postRequestElement('hidden', $id),
+ postRequestElement('admin', $id),
+ postRequestElement('member', $id),
+ $id
+ ), __FILE__, __LINE__, false));