From: Roland Häder Date: Mon, 18 Feb 2008 23:17:32 +0000 (+0000) Subject: no more locked points X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=be89901a666991ef455920e2b0a6f7a0b31e0609 no more locked points --- diff --git a/inc/modules/member/what-wernis.php b/inc/modules/member/what-wernis.php index 13fb648bb4..e0cd9f4eb7 100644 --- a/inc/modules/member/what-wernis.php +++ b/inc/modules/member/what-wernis.php @@ -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')",