X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Forder.php;h=b0c26bc7af42d42487255500bbbe76b3d8e79c84;hb=847c1a1f0a221f4d560f9a12a3a4aa3d92b6d16f;hp=e617ab9b6c972e485765230024ea30cf520f17dd;hpb=a1ef1533f17e1ca5db81a9912632491e72626694;p=mailer.git diff --git a/inc/modules/order.php b/inc/modules/order.php index e617ab9b6c..b0c26bc7af 100644 --- a/inc/modules/order.php +++ b/inc/modules/order.php @@ -39,7 +39,7 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { } elseif ((!EXT_IS_ACTIVE("order")) && (!IS_ADMIN())) { ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "order"); return; -} elseif (!IS_LOGGED_IN()) { +} elseif (!IS_MEMBER()) { // Sorry, no guest access! $URL = URL."/modules.php?module=index"; } elseif (empty($_GET['order'])) { @@ -90,7 +90,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($GLOBALS['userid'], $USED); // Update mediadata as well if (GET_EXT_VERSION("mediadata") >= "0.0.4") {