]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/action-order.php
Some functions rewritten to hungarian notation, handling of array rewritten
[mailer.git] / inc / modules / member / action-order.php
index 5b1492cab392c33588baf1a9b176a302ba05eb06..6c327f2568a7775ee91377aeb37cae1f84c6b89f 100644 (file)
@@ -37,8 +37,8 @@ if (!defined('__SECURITY')) {
        require($INC);
 } elseif (!IS_MEMBER()) {
        LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("order")) {
-       ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "order");
+} elseif ((!EXT_IS_ACTIVE("order")) && (!IS_ADMIN())) {
+       addFatalMessage(EXTENSION_PROBLEM_EXT_INACTIVE, "order");
        return;
 } elseif ($BLOCK_MODE) {
        // Block mode detected
@@ -54,7 +54,7 @@ if (FILE_READABLE($INC_WHAT)) {
        // Ok, we finally load the member action module
        include_once($INC_WHAT);
 } else {
-       ADD_FATAL(MEMBER_404_ACTION_1.$GLOBALS['what'].MEMBER_404_ACTION_2);
+       addFatalMessage(MEMBER_404_ACTION_1.$GLOBALS['what'].MEMBER_404_ACTION_2);
 }
 
 //