]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-transfer.php
Fix for undefined index 'last'
[mailer.git] / inc / modules / member / what-transfer.php
index ffbe1fc3b8378e58b0c43b443f6b9dab855344f0..aa9062a243280d119a3c92d826d3d79f12d963ba 100644 (file)
@@ -37,7 +37,7 @@ if (!defined('__SECURITY')) {
        require($INC);
 } elseif (!IS_MEMBER()) {
        LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("transfer"))
+} elseif ((!EXT_IS_ACTIVE("transfer")) && (!IS_ADMIN())) {
        ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "transfer");
        return;
 }
@@ -192,10 +192,10 @@ case "new": // Start new transfer
                                __FILE__, __LINE__);
 
                        // Add points to account *directly* ...
-                       ADD_POINTS_REFSYSTEM(bigintval($_POST['to_uid']), bigintval($_POST['points']), false, "0", false, "direct");
+                       ADD_POINTS_REFSYSTEM("member_transfer", bigintval($_POST['to_uid']), bigintval($_POST['points']), false, "0", false, "direct");
 
                        // ... and add it to current user's used points
-                       SUB_POINTS($GLOBALS['userid'], $_POST['points']);
+                       SUB_POINTS("transfer", $GLOBALS['userid'], $_POST['points']);
 
                        // First send email to recipient
                        $msg = LOAD_EMAIL_TEMPLATE("member_transfer_recipient", "", __RECIPIENT_UID);