]> git.mxchange.org Git - mailer.git/blobdiff - inc/filter/coupon_filter.php
Theoretical working merge of mailid.php and mailid_top.php into mailid.php + a couple...
[mailer.git] / inc / filter / coupon_filter.php
index 4a9f0fca2966e06592e13e298370bcf574d1d0dc..00ae170d8edaa4f2debc8cd18e23144a01378b59 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -55,11 +55,11 @@ function FILTER_COUPON_CHANGE_POINTS_COLUMN_NAME ($filterData) {
 function FILTER_POST_CASH_COUPON ($filterData) {
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
        // Now we just need to book that points on the user's account
-       initReferalSystem();
-       addPointsThroughReferalSystem('coupon_cashed', $filterData['userid'], $filterData['points']);
+       initReferralSystem();
+       addPointsThroughReferralSystem('coupon_cashed', $filterData['userid'], $filterData['points']);
 
        // Subtract points from member account if the admin has selected one
-       if (isValidUserId(getCouponUserid())) {
+       if (isValidId(getCouponUserid())) {
                // Subtract from this account and ignore return status
                subtractPoints('cashed_coupon', getCouponUserid(), $filterData['points']);
        } // END - if