]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-wernis.php
Referal system refactured (and some parts fixed), wrapper function introduced:
[mailer.git] / inc / modules / member / what-wernis.php
index 9ea20c21125464fe732be47a2708c9b3c04e0d61..e00af871a2ee8333868e4aca17c1bae0ce3a523b 100644 (file)
@@ -175,7 +175,7 @@ if ((isFormSent()) && (isGetRequestParameterSet('mode'))) {
                                        $success = WERNIS_EXECUTE_WITHDRAW(postRequestParameter('wernis_userid'), md5(postRequestParameter('wds66_password')), postRequestParameter('amount'));
                                        if ($success === true) {
                                                // Add it to this amount
-                                               addPointsDirectly('wernis_withdraw', getMemberId(), bigintval(postRequestParameter('amount')));
+                                               addPointsThroughReferalSystem('wernis_withdraw', getMemberId(), bigintval(postRequestParameter('amount')));
 
                                                // Update the user data as well..
                                                SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `wernis_userid`=%s WHERE `userid`=%s LIMIT 1",