Missing configuration fixed
authorRoland Häder <roland@mxchange.org>
Sat, 7 Nov 2009 19:35:05 +0000 (19:35 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 7 Nov 2009 19:35:05 +0000 (19:35 +0000)
inc/mysql-manager.php

index 27961f5f608adb5bd0c1fe4a82656cf63718cfec..e6ca6a716590466ea16047e4e1bcef7d4be46894 100644 (file)
@@ -1022,7 +1022,15 @@ function getModeAction ($mode, $what) {
        $ret = '';
 
        //* DEBUG: */ print(__LINE__.'='.$mode.'/'.$what.'/'.getAction()."=<br />");
-       if ((empty($what)) && ($mode != 'admin')) {
+       if (!isExtensionInstalledAndNewer('sql_patches', '0.0.5')) {
+               // sql_patches is missing so choose depending on mode
+               if ($mode == 'admin') {
+                       $what = 'overview';
+               } else {
+                       $what = 'welcome';
+               }
+       } elseif ((empty($what)) && ($mode != 'admin')) {
+               // Use configured 'home'
                $what = getConfig('index_home');
        } // END - if