diff options
-rw-r--r-- | core/controllers/welcome.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php index 5a6d99f3..1bf478b0 100644 --- a/core/controllers/welcome.php +++ b/core/controllers/welcome.php @@ -135,16 +135,13 @@ class Welcome_Controller extends Template_Controller { foreach ($installed as $installed_module) { $modules[$installed_module->name] = $installed_module->version; } - } catch (Exception $e) { - // The database may not be installed - } - if (!empty($modules["core"])) { foreach (glob(MODPATH . "*/helpers/*_installer.php") as $file) { $modules[basename(dirname(dirname($file)))] = 0; } + } catch (Exception $e) { + // The database may not be installed } - return $modules; } } |