More extension-depending menus secured
[mailer.git] / inc / modules / member / what-bank_create.php
index c5cffb56afb77b39cf6d75db602e82cb14743a5e..5d50ac7ddab4acda56689368edad32377530c9f8 100644 (file)
@@ -35,6 +35,9 @@
 if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
+} elseif (!EXT_IS_ACTIVE("bank")) {
+       ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "bank");
+       return;
 } elseif (!IS_MEMBER()) {
        LOAD_URL("modules.php?module=index");
 }