mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
rewrote shorthost function, made some php warnings go away (when using 'use strict' equivalent ;)
git-svn-id: http://www.observium.org/svn/observer/trunk@701 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -10,7 +10,7 @@ function ifNameDescr ($interface, $device = NULL) {
|
||||
global $config;
|
||||
if(!$device) { $device = device_array($interface['device_id']); }
|
||||
$os = strtolower($device['os']);
|
||||
if($config['ifname'][$os]) {
|
||||
if(isset($config['ifname'][$os])) {
|
||||
$interface['label'] = $interface['ifDescr'];
|
||||
} else {
|
||||
$interface['label'] = $interface['ifName'];
|
||||
|
||||
Reference in New Issue
Block a user