- if (REQUEST_ISSET_POST(('menu'))) {
- SQL_QUERY_ESC("INSERT INTO `{!_MYSQL_PREFIX!}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('%s','%s','%s','%s','%s','%s')",
- array(
- REQUEST_POST('menu'),
- REQUEST_POST('name'),
- REQUEST_POST('title'),
- bigintval(REQUEST_POST('sort')),
- REQUEST_POST('visible'),
- REQUEST_POST('active'),
-), __FILE__, __LINE__);
+ if (isPostRequestParameterSet('menu')) {
+ SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('%s','%s','%s','%s','%s','%s')",
+ array(
+ postRequestParameter('menu'),
+ postRequestParameter('name'),
+ postRequestParameter('title'),
+ bigintval(postRequestParameter('sort')),
+ postRequestParameter('visible'),
+ postRequestParameter('active'),
+ ), __FILE__, __LINE__);