X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ffilter%2Fcoupon_filter.php;h=00ae170d8edaa4f2debc8cd18e23144a01378b59;hb=fb1ce068a47e783caabea977fb963784f60dcbb9;hp=1a1fea8454f666a10e0701b4b1fcde2bd5f2a739;hpb=c6a411b7d235e1d3a36321fcb7ac806a0e6509f7;p=mailer.git diff --git a/inc/filter/coupon_filter.php b/inc/filter/coupon_filter.php index 1a1fea8454..00ae170d8e 100644 --- a/inc/filter/coupon_filter.php +++ b/inc/filter/coupon_filter.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * 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 * * it under the terms of the GNU General Public License as published by * @@ -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