mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix empty label in generate_port_link (#12870)
This commit is contained in:
@@ -329,7 +329,7 @@ function generate_port_link($port, $text = null, $type = null, $overlib = 1, $si
|
||||
$graph_array = [];
|
||||
|
||||
if (! $text) {
|
||||
$text = Rewrite::normalizeIfName($port['label']);
|
||||
$text = Rewrite::normalizeIfName($port['label'] ?? $port['ifName']);
|
||||
}
|
||||
|
||||
if ($type) {
|
||||
|
Reference in New Issue
Block a user