]> git.mxchange.org Git - mailer.git/blobdiff - surfbar.php
Some missing brackes added, sponsor guest modules now depends on extension
[mailer.git] / surfbar.php
index bcedacfb55a12d4007802a8ae7eb1eff28973c60..973d4e1b5d3933a8af868ff8d16278e9c9b29039 100644 (file)
@@ -47,17 +47,17 @@ $CSS = 0;
 $msg = null;
 
 // Load the required file(s)
-require ("inc/config.php");
+require("inc/config.php");
 
 // Is the script installed?
 if (isBooleanConstantAndTrue('mxchange_installed')) {
        // Only logged in users may use this surfbar!
-       if (!IS_MEMBER()) {
-               // Redirect
-               LOAD_URL(URL."/modules.php?module=index");
-       } elseif (!EXT_IS_ACTIVE("surfbar")) {
+       if (!EXT_IS_ACTIVE("surfbar")) {
                // Surfbar deactivated
                LOAD_URL(URL."/modules.php?module=login&msg=".CODE_EXTENSION_PROBLEM."&ext=surfbar");
+       } elseif (!IS_MEMBER()) {
+               // Redirect
+               LOAD_URL(URL."/modules.php?module=index");
        }
 
        // Handle tasks on self-maintenance