mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix more error exceptions (#14266)
This commit is contained in:
@@ -102,7 +102,9 @@ class OS
|
||||
|
||||
// remove previously cached os settings and replace with user settings
|
||||
$config = ['os' => []]; // local $config variable, not global
|
||||
@include "$install_dir/config.php"; // FIXME load db settings too or don't load config.php
|
||||
if (is_file("$install_dir/config.php")) {
|
||||
@include "$install_dir/config.php"; // FIXME load db settings too or don't load config.php
|
||||
}
|
||||
Config::set('os', $config['os']);
|
||||
|
||||
// load the os defs fresh from cache (merges with existing OS settings)
|
||||
|
Reference in New Issue
Block a user