From c956aae26792c7718927fdac90df284d555ccc30 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 30 Oct 2009 07:50:56 +0000 Subject: [PATCH] Fixes a bug if module=index is called with no ext-sql_patches --- inc/mysql-manager.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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: -- 2.39.5