- // Update entry
- $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_admin_menu SET
-title='%s',
-action='%s',
-what='%s',
-descr='%s'
-WHERE ".$AND." AND id=%s LIMIT 1",
- array(
- $menu,
- $_POST['sel_action'][$sel],
- $_POST['sel_what'][$sel],
- addslashes($_POST['sel_desc'][$sel]),
- $sel,
-), __FILE__, __LINE__);
- }
- LOAD_TEMPLATE("admin_data_saved");
- break;
+ // Update entry
+ SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET
+`title`='%s',
+`action`='%s',
+`what`='%s',
+`descr`='%s'
+WHERE ".$AND." AND `id`=%s LIMIT 1",
+ array(
+ $menu,
+ postRequestParameter('sel_action', $sel),
+ postRequestParameter('sel_what', $sel),
+ postRequestParameter('sel_desc', $sel),
+ $sel,
+ ), __FILE__, __LINE__);
+ }