X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-wernis.php;h=84ca9cd0353da9a9c092ca920ecb5ba6362de590;hp=627ac41651dea3f0093dba0ad5018d1bec572062;hb=d6834211baacaa54b282898fe54dc8c1511f046b;hpb=d04e72ca87bc06e7271a7f47c765a58d27857968 diff --git a/inc/modules/member/what-wernis.php b/inc/modules/member/what-wernis.php index 627ac41651..84ca9cd035 100644 --- a/inc/modules/member/what-wernis.php +++ b/inc/modules/member/what-wernis.php @@ -233,7 +233,7 @@ if ((isset($_POST['ok'])) && (isset($_GET['mode']))) { if ($success) { // Add it to this amount unset($DEPTH); - ADD_POINTS_REFSYSTEM($GLOBALS['userid'], bigintval($_POST['amount']), false, 0, false, "direct"); + ADD_POINTS_REFSYSTEM("wernis_withdraw", $GLOBALS['userid'], bigintval($_POST['amount']), false, 0, false, "direct"); // Update the user data as well.. $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET `wernis_userid`=%s WHERE userid=%s LIMIT 1", @@ -268,7 +268,7 @@ if ((isset($_POST['ok'])) && (isset($_GET['mode']))) { $success = WERNIS_EXECUTE_PAYOUT($_POST['wds66_id'], $_POST['amount']); if ($success) { // Sub points - SUB_POINTS($GLOBALS['userid'], $_POST['amount']); + SUB_POINTS("wernis_payout", $GLOBALS['userid'], $_POST['amount']); // Update WDS66 id $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET `wernis_userid`=%s WHERE userid=%s LIMIT 1",