mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Do not use generic icon by default (#5303)
This commit is contained in:
@ -210,7 +210,7 @@ function getImageName($device, $use_database = true)
|
||||
$device['os'] = strtolower($device['os']);
|
||||
|
||||
// fetch from the database
|
||||
if ($use_database && !empty($device['icon']) && file_exists($config['html_dir'] . "/images/os/" . $device['icon'] . ".png")) {
|
||||
if ($device['icon'] != 'generic' && $use_database && !empty($device['icon']) && file_exists($config['html_dir'] . "/images/os/" . $device['icon'] . ".png")) {
|
||||
return $device['icon'];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user