Fix for non-working admin login if no extension is installed (an other fixed broke it)
authorRoland Häder <roland@mxchange.org>
Mon, 22 Dec 2008 17:03:14 +0000 (17:03 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 22 Dec 2008 17:03:14 +0000 (17:03 +0000)
inc/databases.php
inc/functions.php
inc/mysql-manager.php

index f2be6b0..a1eb89f 100644 (file)
@@ -115,7 +115,7 @@ define('USAGE_BASE', "usage");
 define('SERVER_URL', "http://www.mxchange.org");
 
 // Current SVN revision
-define('CURR_SVN_REVISION', "698");
+define('CURR_SVN_REVISION', "699");
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
index e255045..5c0715d 100644 (file)
@@ -929,6 +929,11 @@ function LOAD_URL($URL, $addUrlData=true) {
        }
 
        // Get output buffer
+       /*
+       print "<pre>";
+       debug_print_backtrace();
+       die("</pre>");
+       */
        $OUTPUT = ob_get_contents();
 
        // Clear it only if there is content
index 504e0eb..4f2c89c 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");
        }