mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
make warning go away from static-config
git-svn-id: http://www.observium.org/svn/observer/trunk@2180 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -713,12 +713,12 @@ $config['os'][$os]['icon'] = "tripplite";
|
|||||||
|
|
||||||
foreach($config['os'] as $this_os => $blah)
|
foreach($config['os'] as $this_os => $blah)
|
||||||
{
|
{
|
||||||
$this_os_group = $config['os'][$this_os]['group'];
|
if (isset($config['os'][$this_os]['group'])) { $this_os_group = $config['os'][$this_os]['group']; }
|
||||||
if(isset($config['os'][$this_os]['group']) && isset($config['os_group'][$this_os_group]))
|
if (isset($config['os'][$this_os]['group']) && isset($config['os_group'][$this_os_group]))
|
||||||
{
|
{
|
||||||
foreach ($config['os_group'][$this_os_group] as $property => $value)
|
foreach ($config['os_group'][$this_os_group] as $property => $value)
|
||||||
{
|
{
|
||||||
if(!isset($config['os'][$this_os][$property]))
|
if (!isset($config['os'][$this_os][$property]))
|
||||||
{
|
{
|
||||||
$config['os'][$this_os][$property] = $value;
|
$config['os'][$this_os][$property] = $value;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user