From f011971adedf5f09092b0a2772ad18a9f9f31a70 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 5 Nov 2008 01:08:16 +0000 Subject: Further simplify the code. --- core/controllers/welcome.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'core/controllers') 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; } } -- cgit v1.2.3