Fix empty label in generate_port_link (#12870)

This commit is contained in:
PipoCanaja
2021-05-13 17:03:10 +02:00
committed by GitHub
parent df5096e449
commit 6b18ee6dfa

View File

@@ -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) {