]> git.mxchange.org Git - mailer.git/blobdiff - admin.php
More globals rewritten, see ticket #100
[mailer.git] / admin.php
index d48c6112922789d62d88133bb7664040f972da78..abad82df304662242f643cc25e0dc831c7d7b972 100644 (file)
--- a/admin.php
+++ b/admin.php
@@ -52,8 +52,14 @@ require("inc/config.php");
 
 // Is the script installed?
 if (isInstalled()) {
-       // Simply redirect... :-)
-       LOAD_URL("modules.php?module=admin");
+       // Is the admin logged-in and no sql_patches installed?
+       if ((IS_ADMIN()) && (!EXT_IS_ACTIVE("sql_patches"))) {
+               // Extension 'sql_patches' is missing!
+               LOAD_URL("modules.php?module=admin&sql_patches=1");
+       } else {
+               // Default redirect
+               LOAD_URL("modules.php?module=admin");
+       }
 } else {
        // You have to install first!
        LOAD_URL("install.php");