fix: Stop loading all oses when we have no db connection (#7003)

* fix: Stop loading all oses when we have no db connection

* updated to use load_all_os() correctly
This commit is contained in:
Neil Lathwood
2017-07-21 18:42:16 +01:00
committed by Tony Murray
parent feef5383f3
commit 08d3a267ad

View File

@@ -90,7 +90,6 @@ if (module_selected('alerts', $init_modules)) {
require_once $install_dir . '/includes/alerts.inc.php';
}
// variable definitions
require $install_dir . '/includes/cisco-entities.php';
require $install_dir . '/includes/vmware_guestid.inc.php';
@@ -167,8 +166,11 @@ if (module_selected('web', $init_modules)) {
$config['title_image'] = 'images/librenms_logo_'.$config['site_style'].'.svg';
}
require $install_dir . '/html/includes/vars.inc.php';
load_all_os(true);
if (module_selected('nodb', $init_modules)) {
load_all_os(false);
} else {
load_all_os(true);
}
}
$console_color = new Console_Color2();