X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Forder.php;h=6e52c0745d0469b9ab840c3a103fa4491d913df1;hb=598ecc2011b09b2c8ae4ee32ed5c31dde3939c94;hp=9d24c7d4eda36a12223b95d4944c17c41673a226;hpb=1904897a38323335e3c93a71e6fe8c6fb82bcac4;p=mailer.git diff --git a/inc/modules/order.php b/inc/modules/order.php index 9d24c7d4ed..6e52c0745d 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")) +} elseif ((!EXT_IS_ACTIVE("order")) && (!IS_ADMIN())) { 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(