Skip to content

Commit b207305

Browse files
murrantStyleCIBot
andauthored
Fix ospfv3 page when port is missing (librenms#17469)
* Fix ospfv3 page when port is missing * Apply fixes from StyleCI --------- Co-authored-by: StyleCI Bot <[email protected]>
1 parent e47712c commit b207305

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/html/pages/device/routing/ospfv3.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
echo '
112112
<tbody>
113113
<tr>
114-
<td>' . Blade::render('<x-port-link :port="$port"/>', ['port' => $ospfPort->port]) . '</td>
114+
<td>' . ($ospfPort->port ? Blade::render('<x-port-link :port="$port"/>', ['port' => $ospfPort->port]) : '') . '</td>
115115
<td>' . $ospfPort->ospfv3IfType . '</td>
116116
<td>' . $ospfPort->ospfv3IfState . '</td>
117117
<td>' . $ospfPort->ospfv3IfMetricValue . '</td>

0 commit comments

Comments
 (0)