Large code cleanups:
[mailer.git] / inc / modules / member / what-wernis.php
index f555256941b9f3f06970fb510ec987becd7ecc6e..a0f0a2b48ed466305d7d97d70f8a36c48ec3c909 100644 (file)
@@ -175,8 +175,8 @@ if ((isFormSent()) && (isGetRequestElementSet('mode'))) {
                                        $success = WERNIS_EXECUTE_WITHDRAW(postRequestElement('wernis_userid'), md5(postRequestElement('wds66_password')), postRequestElement('amount'));
                                        if ($success === true) {
                                                // Add it to this amount
-                                               initReferalSystem();
-                                               addPointsThroughReferalSystem('wernis_withdraw', getMemberId(), bigintval(postRequestElement('amount')));
+                                               initReferralSystem();
+                                               addPointsThroughReferralSystem('wernis_withdraw', getMemberId(), bigintval(postRequestElement('amount')));
 
                                                // Update the user data as well..
                                                SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `wernis_userid`=%s WHERE `userid`=%s LIMIT 1",