X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-send_coupon.php;h=262a4c8c73eaa4021217515f8f3929032fef0435;hb=8ce32e702f3caa76b8d446902948e83e1e6854c8;hp=76324a4dad9354ccf84f50259319ebf544102a5e;hpb=0f3a135204757cc8750262871c8e62c42300acb4;p=mailer.git diff --git a/inc/modules/admin/what-send_coupon.php b/inc/modules/admin/what-send_coupon.php index 76324a4dad..262a4c8c73 100644 --- a/inc/modules/admin/what-send_coupon.php +++ b/inc/modules/admin/what-send_coupon.php @@ -17,7 +17,7 @@ * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -46,10 +46,10 @@ addYouAreHereLink('admin', __FILE__); // Is the form sent? if (isFormSent()) { // Are all required fields set? - if (!isPostRequestParameterSet('points')) { + if (!isPostRequestElementSet('points')) { // Points not entered displayMessage('{--ADMIN_SEND_COUPON_POINTS_NOT_ENTERED--}'); - } elseif (!isPostRequestParameterSet('coupon_description')) { + } elseif (!isPostRequestElementSet('coupon_description')) { // Description not entered displayMessage('{--ADMIN_SEND_COUPON_DESCRIPTION_NOT_ENTERED--}'); } else { @@ -67,8 +67,8 @@ if (isFormSent()) { array( $expirationTime, SQL_NUMROWS($result), - bigintval(postRequestParameter('points')), - postRequestParameter('coupon_description') + bigintval(postRequestElement('points')), + postRequestElement('coupon_description') ), __FILE__, __LINE__ ); @@ -102,7 +102,7 @@ if (isFormSent()) { $content = array( 'coupon_id' => $couponId, 'userid' => $userid, - 'points' => bigintval(postRequestParameter('points')), + 'points' => bigintval(postRequestElement('points')), 'coupon_code' => $couponCode, 'coupon_expired' => generateDateTime($expirationTime, '0') ); @@ -122,8 +122,8 @@ if (isFormSent()) { 'userids' => implode(',', $adminUserids), 'userid_count' => count($adminUserids), 'coupon_id' => $couponId, - 'points' => bigintval(postRequestParameter('points')), - 'coupon_description' => postRequestParameter('coupon_description'), + 'points' => bigintval(postRequestElement('points')), + 'coupon_description' => postRequestElement('coupon_description'), 'coupon_expired' => generateDateTime($expirationTime, '0') );