From: Roland Häder Date: Fri, 30 Oct 2009 07:50:56 +0000 (+0000) Subject: Fixes a bug if module=index is called with no ext-sql_patches X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=c956aae26792c7718927fdac90df284d555ccc30 Fixes a bug if module=index is called with no ext-sql_patches --- diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 311fdb0a19..2b88cfbc83 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -1718,7 +1718,14 @@ function getWhatFromModule ($modCheck) { case 'login': case 'index': - $what = getConfig('index_home'); + // Is ext-sql_patches installed and newer than 0.0.5? + if (isExtensionInstalledAndNewer('sql_patches', '0.0.5')) { + // Use it from config + $what = getConfig('index_home'); + } else { + // Use default 'welcome' + $what = 'welcome'; + } break; default: