mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Miscellaneous cleanup - part 5 (#14502)
* Miscellaneous cleanup - part 5 * Update includes/discovery/sensors/pre-cache/ipoman.inc.php Co-authored-by: Tony Murray <murraytony@gmail.com> * Update ipoman.inc.php * string for trim() * Update ciscosb.inc.php Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
@@ -636,7 +636,7 @@ function get_port_id($ports_mapped, $port, $port_association_mode)
|
||||
$maps = $ports_mapped['maps'];
|
||||
|
||||
if (in_array($port_association_mode, ['ifIndex', 'ifName', 'ifDescr', 'ifAlias'])) {
|
||||
$port_id = $maps[$port_association_mode][$port[$port_association_mode]];
|
||||
$port_id = $maps[$port_association_mode][$port[$port_association_mode]] ?? null;
|
||||
}
|
||||
|
||||
return $port_id;
|
||||
|
Reference in New Issue
Block a user