X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-payout.php;h=dccd81ffb80efda2ba69cd8a0761c0d6b5f67790;hp=9b9f607cfc1b827a4d623ae8439336f1c228a6c4;hb=d6834211baacaa54b282898fe54dc8c1511f046b;hpb=7eb9da85bfb337997a58a244cb610c97a8d10c13 diff --git a/inc/modules/member/what-payout.php b/inc/modules/member/what-payout.php index 9b9f607cfc..dccd81ffb8 100644 --- a/inc/modules/member/what-payout.php +++ b/inc/modules/member/what-payout.php @@ -39,7 +39,7 @@ if (!defined('__SECURITY')) { } elseif (!IS_MEMBER()) { // Not logged in LOAD_URL("modules.php?module=index"); -} elseif ((!EXT_IS_ACTIVE("payout")) && (!IS_ADMIN())) { +} elseif (!EXT_IS_ACTIVE("payout")) // Extension "payout" is not active ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "payout"); return; @@ -192,7 +192,7 @@ ORDER BY p.payout_timestamp DESC", define('PAYOUT_POINTS_VALUE', $PAYOUT); // Subtract points from member's account - SUB_POINTS($GLOBALS['userid'], $PAYOUT); + SUB_POINTS("payout", $GLOBALS['userid'], $PAYOUT); // Add entry to his tranfer history if ($allow == "Y")