]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-payout.php
Frameset support entirely removed, TODO extended, minor template fix
[mailer.git] / inc / modules / member / what-payout.php
index 9a555afefac2caaced3f24cfa115067694a7b810..2ad39b14f0cb4a40bbc1dd362689f9abee87f99c 100644 (file)
@@ -39,8 +39,7 @@ if (!defined('__SECURITY')) {
 } elseif (!IS_MEMBER()) {
        // Not logged in
        LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("payout"))
-       // Extension "payout" is not active
+} elseif ((!EXT_IS_ACTIVE("payout")) && (!IS_ADMIN())) {
        ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "payout");
        return;
 }
@@ -192,7 +191,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")