X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Forder.php;h=c2b8ad87324d4f7007d8b48852a3478d3faf6848;hb=a08a022f8652e660070002c2456aeb81a65b6213;hp=d320cbddae7fea9a354d87acc752d1518011de1b;hpb=143e78d4231adddd9e706cbf55ec5dd8c1651890;p=mailer.git diff --git a/inc/modules/order.php b/inc/modules/order.php index d320cbddae..c2b8ad8732 100644 --- a/inc/modules/order.php +++ b/inc/modules/order.php @@ -36,7 +36,7 @@ $URL = ""; if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); -} elseif ((!EXT_IS_ACTIVE("order")) && (!IS_ADMIN())) { +} elseif (!EXT_IS_ACTIVE("order")) ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "order"); return; } elseif (!IS_MEMBER()) { @@ -87,7 +87,7 @@ if (empty($URL)) { // Update used points $ADD = ""; if ($_CONFIG['order_max_full'] == "ORDER") $ADD = ", mail_orders=mail_orders+1"; - SUB_POINTS($GLOBALS['userid'], $USED); + SUB_POINTS("order", $GLOBALS['userid'], $USED); // Prepare content $content = array(