-if (IS_FORM_SENT()) {
- foreach (REQUEST_POST('sel') as $id => $value) {
- SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_must_register` SET field_required='%s' WHERE id=%s AND field_required != '%s' LIMIT 1",
- array($value, bigintval($id), $value),__FILE__, __LINE__);
+if (isFormSent()) {
+ foreach (postRequestParameter('sel') as $id => $value) {
+ SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_must_register` SET field_required='%s' WHERE `id`=%s AND field_required != '%s' LIMIT 1",
+ array($value, bigintval($id), $value),__FILE__, __LINE__);