]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-payout.php
More fixes, thanks to Piter01
[mailer.git] / inc / modules / member / what-payout.php
index 9a555afefac2caaced3f24cfa115067694a7b810..d352d80cf79d48bde4892a970e5465bee5fc7fa5 100644 (file)
@@ -39,7 +39,7 @@ if (!defined('__SECURITY')) {
 } elseif (!IS_MEMBER()) {
        // Not logged in
        LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("payout"))
+} 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")