Final fix for double/missing constant
[mailer.git] / beg.php
diff --git a/beg.php b/beg.php
index d212731055f79af25aff299f74f375cb66d01844..9d1ef62d0895f25fff1abad51f92b0ef2e476836 100644 (file)
--- a/beg.php
+++ b/beg.php
@@ -48,6 +48,12 @@ $msg = null;
 // Load the required file(s)
 require ("inc/config.php");
 
+// Is the "beg" extension active?
+if (!EXT_IS_ACTIVE("beg")) {
+       // Redirect to index
+       LOAD_URL("modules.php?module=index&msg=".CODE_EXTENSION_PROBLEM."&ext=beg");
+} // END - if
+
 // Is the script installed?
 if (isBooleanConstantAndTrue('mxchange_installed')) {
        // Check for userid