X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fmember%2Fwhat-sponsor.php;h=d2132f81594811d1177ec584573d1f97f9be9c04;hb=b8c86fa12322603c24a88ea2b0fd3dbeba612752;hp=0360d6ecb0f701d4f763a2d8777d6d614e6e2f18;hpb=357b2ca133fc1f89db74097955c366cb4bee6996;p=mailer.git diff --git a/inc/modules/member/what-sponsor.php b/inc/modules/member/what-sponsor.php index 0360d6ecb0..d2132f8159 100644 --- a/inc/modules/member/what-sponsor.php +++ b/inc/modules/member/what-sponsor.php @@ -35,7 +35,10 @@ 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"); + LOAD_URL("modules.php?module=index"); +} elseif ((!EXT_IS_ACTIVE("sponsor")) && (!IS_ADMIN())) { + addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "sponsor"); + return; } // Add description as navigation point