]> git.mxchange.org Git - mailer.git/commitdiff
no more locked points
authorRoland Häder <roland@mxchange.org>
Mon, 18 Feb 2008 23:17:32 +0000 (23:17 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 18 Feb 2008 23:17:32 +0000 (23:17 +0000)
inc/modules/member/what-wernis.php

index 13fb648bb4e6a8d1fb28ab82fc0eab1c4947141a..e0cd9f4eb7e6a5124fbb537a32a4887c65924f42 100644 (file)
@@ -200,18 +200,9 @@ if ((isset($_POST['ok'])) && (isset($_GET['mode']))) {
                                // All is fine here so do the withdraw
                                $success = WERNIS_EXECUTE_WITHDRAW($_POST['wds66_id'], md5($_POST['wds66_password']), $_POST['amount']);
                                if ($success) {
-                                       // Default is locked!
-                                       $locked = true;
-
-                                       // Shall I "pay" the referral points imidiately?
-                                       if ($_CONFIG['ref_payout'] == "0") {
-                                               // Yes, "pay" it now
-                                               $locked = false;
-                                       }
-
                                        // Add it to this amount
                                        $DEPTH = 0;
-                                       ADD_POINTS_REFSYSTEM($GLOBALS['userid'], bigintval($_POST['amount']), false, 0, $locked, "direct");
+                                       ADD_POINTS_REFSYSTEM($GLOBALS['userid'], bigintval($_POST['amount']), false, 0, false, "direct");
 
                                        // Register this wernis movement
                                        $result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_user_wernis (`userid`, `wernis_account`, `wernis_amount`, `wernis_timestamp`, `wernis_type`) VALUES(%d, %d, %d, UNIX_TIMESTAMP(), 'IN')",