Fix for non-working admin login if no extension is installed (an other fixed broke it)
[mailer.git] / inc / mysql-manager.php
index 504e0ebb11d4f4e3de64293675cbbf1e0546f3fb..4f2c89ca681ed7aa7032b0e7fa4fcceafeb02a6e 100644 (file)
@@ -912,7 +912,7 @@ function GET_ACTION ($MODE, &$wht) {
 
                // Free memory
                SQL_FREERESULT($result);
-       } elseif (GET_EXT_VERSION("sql_patches") == "") {
+       } elseif ((GET_EXT_VERSION("sql_patches") == "") && ($MODE != "admin")) {
                // No sql_patches installed!
                LOAD_URL("admin.php");
        }