mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
cleanups etc
git-svn-id: http://www.observium.org/svn/observer/trunk@2213 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -87,15 +87,16 @@ if ($updated && $update_message)
|
||||
<select name="type">
|
||||
<?php
|
||||
$unknown = 1;
|
||||
foreach ($device_types as $type)
|
||||
|
||||
foreach ($config['device_types'] as $type)
|
||||
{
|
||||
echo(' <option value="'.$type.'"');
|
||||
if ($device['type'] == $type)
|
||||
echo(' <option value="'.$type['type'].'"');
|
||||
if ($device['type'] == $type['type'])
|
||||
{
|
||||
echo('selected="1"');
|
||||
echo(' selected="1"');
|
||||
$unknown = 0;
|
||||
}
|
||||
echo(' >' . ucfirst($type) . '</option>');
|
||||
echo(' >' . ucfirst($type['type']) . '</option>');
|
||||
}
|
||||
if ($unknown)
|
||||
{
|
||||
|
Reference in New Issue
Block a user