]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-sponsor.php
Fixed a typo, thanks to profi-concept. Function INCLUDE_READABLE() introduced
[mailer.git] / inc / modules / member / what-sponsor.php
index 059429d87f07d29fd10df565797cd0ee2a567536..98d51f66d01a9129663a1d8a65e318ece90cb57f 100644 (file)
@@ -35,9 +35,9 @@ if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
        require($INC);
 } elseif (!IS_MEMBER()) {
-       LOAD_URL(URL."/modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("sponsor")) {
-       ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "sponsor");
+       LOAD_URL("modules.php?module=index");
+} elseif ((!EXT_IS_ACTIVE("sponsor")) && (!IS_ADMIN())) {
+       addFatalMessage(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "sponsor");
        return;
 }