X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=inc%2Fmodules%2Fadmin%2Fwhat-config_payouts.php;h=f9a6ed4a5cf7a91784c397cfde7f252fb3e66196;hb=18e32f1a8971b18bace4f051094acf27800bd7d9;hp=bda7aff95f6e3cbcf2492e1ac4e7f0e919aa71f8;hpb=8cd3d68a23aa285f2fe149698a46cf8b4e3ac0ca;p=mailer.git diff --git a/inc/modules/admin/what-config_payouts.php b/inc/modules/admin/what-config_payouts.php index bda7aff95f..f9a6ed4a5c 100644 --- a/inc/modules/admin/what-config_payouts.php +++ b/inc/modules/admin/what-config_payouts.php @@ -47,7 +47,7 @@ addMenuDescription('admin', __FILE__); if (isPostRequestParameterSet('rate')) setPostRequestParameter('rate', convertCommaToDot(postRequestParameter('rate'))); -if ((isPostRequestParameterSet('add')) && (isPostRequestParameterSet('title')) && (postRequestParameter('rate') > 0)) { +if ((isFormSent('add')) && (isPostRequestParameterSet('title')) && (postRequestParameter('rate') > 0)) { // Add new payout type $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE type='%s' LIMIT 1", array(postRequestParameter('title')), __FILE__, __LINE__); @@ -84,7 +84,7 @@ VALUES ('%s', %d, %d,'%s','%s','%s','%s','%s','%s','%s')", $result_mem = SQL_QUERY("SELECT `id` FROM `{?_MYSQL_PREFIX?}_user_payouts` WHERE `status`='NEW' ORDER BY payout_timestamp DESC", __FILE__, __LINE__); $display = true; -if ((isPostRequestParameterSet('edit')) && (countPostSelection() > 0)) { +if ((isFormSent('edit')) && (countPostSelection() > 0)) { // Edit payout types if ((isGetRequestParameterSet('ok')) && (getRequestParameter('ok') == 'ok')) { // Init SQLs @@ -146,7 +146,7 @@ WHERE `id`='".$id."' LIMIT 1", // Load main template loadTemplate('admin_config_payouts_edit', false, $OUT); } -} elseif ((isPostRequestParameterSet('del')) && (countPostSelection() > 0)) { +} elseif ((isFormSent('del')) && (countPostSelection() > 0)) { // Delete payout types if ((isGetRequestParameterSet('ok')) && (getRequestParameter('ok') == 'ok')) { // Init SQLs