X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-mem_add.php;h=008915782e6d8b9e7e0c531d431f37af28a8f1d5;hb=c1e83a8a85569bd7e8204471f90dcc0ae6247522;hp=53541a8fe1be5eec9f3c99572e23ed3f7b09cb30;hpb=e5fe5afb17a5c8106f4c890234dfa39419e70f5d;p=mailer.git diff --git a/inc/modules/admin/what-mem_add.php b/inc/modules/admin/what-mem_add.php index 53541a8fe1..008915782e 100644 --- a/inc/modules/admin/what-mem_add.php +++ b/inc/modules/admin/what-mem_add.php @@ -46,8 +46,8 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addMenuDescription('admin', __FILE__); // Check if the admin has entered title and what-php file name... -if ((!isPostRequestElementSet('title')) && (isFormSent())) { - unsetPostRequestElement('ok'); +if ((!isPostRequestParameterSet('title')) && (isFormSent())) { + unsetPostRequestParameter('ok'); } // END - if if (!isFormSent()) { @@ -170,24 +170,24 @@ if (!isFormSent()) { loadTemplate('admin_member_add', false, $content); } elseif (!isDemoModeActive()) { // Insert new menu entry - if (isPostRequestElementSet('menu')) { + if (isPostRequestParameterSet('menu')) { SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`visible`,`locked`,`sort`) VALUES ('%s','%s','%s','%s','%s','%s')", array( - postRequestElement('menu'), - postRequestElement('name'), - postRequestElement('title'), - postRequestElement('visible'), - postRequestElement('active'), - bigintval(postRequestElement('sort')), + postRequestParameter('menu'), + postRequestParameter('name'), + postRequestParameter('title'), + postRequestParameter('visible'), + postRequestParameter('active'), + bigintval(postRequestParameter('sort')), ), __FILE__, __LINE__); } else { SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`title`,`visible`,`locked`,`sort`) VALUES ('%s','%s','%s','%s','%s')", array( - postRequestElement('name'), - postRequestElement('title'), - postRequestElement('visible'), - postRequestElement('active'), - bigintval(postRequestElement('sort')), + postRequestParameter('name'), + postRequestParameter('title'), + postRequestParameter('visible'), + postRequestParameter('active'), + bigintval(postRequestParameter('sort')), ), __FILE__, __LINE__); } loadTemplate('admin_settings_saved', false, getMessage('SETTINGS_SAVED'));