mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
only show device types we know of in our database
git-svn-id: http://www.observium.org/svn/observer/trunk@2840 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -14,6 +14,8 @@ foreach (dbFetchRows("SELECT * FROM `devices` ORDER BY `hostname`") as $device)
|
||||
|
||||
$cache['devices']['hostname'][$device['hostname']] = $device['device_id'];
|
||||
$cache['devices']['id'][$device['device_id']] = $device;
|
||||
|
||||
$cache['device_types'][$device['type']]++;
|
||||
}
|
||||
|
||||
if($_SESSION['userlevel'] >= 5)
|
||||
|
Reference in New Issue
Block a user