Extension ext-earning introduced (unfinished), renamings:
[mailer.git] / inc / modules / member / what-cash_coupon.php
index 925b0587a5a9856b2ac9fe0dbdfe1b29fffec8f1..ca5d40978625bfcae724e9c776538b40c8592701 100644 (file)
@@ -54,7 +54,7 @@ if ((!isExtensionActive('coupon')) && (!isAdmin())) {
 // Is the form sent?
 if (isFormSent()) {
        // Is the coupon code entered?
-       if (isPostRequestParameterSet('coupon_code')) {
+       if (isPostRequestElementSet('coupon_code')) {
                // Search for the coupon
                $result = SQL_QUERY_ESC("SELECT
        c.`coupon_id`,
@@ -80,7 +80,7 @@ WHERE
        UNIX_TIMESTAMP(d.`coupon_expired`) > UNIX_TIMESTAMP()
 LIMIT 1",
                        array(
-                               postRequestParameter('coupon_code'),
+                               postRequestElement('coupon_code'),
                                getMemberId()
                        ), __FILE__, __LINE__);
 
@@ -103,7 +103,7 @@ WHERE
        `userid`=%s
 LIMIT 1",
                                array(
-                                       postRequestParameter('coupon_code'),
+                                       postRequestElement('coupon_code'),
                                        getMemberId()
                                ), __FILE__, __LINE__);