diff --git a/includes/html/functions.inc.php b/includes/html/functions.inc.php
index 6eea38a32a..ea0774fb95 100644
--- a/includes/html/functions.inc.php
+++ b/includes/html/functions.inc.php
@@ -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) {