fix display even line

This commit is contained in:
Adrien MALINGREY 2023-04-05 10:50:28 +02:00
parent f1a06b5ba2
commit cbad4f9fb0

View File

@ -44,7 +44,7 @@ echo "-->\n";
<tbody>
<?php
function display_port($interface, $odd) {
if ($interface["port"] % 2) {
if ($interface["port"] % 2 == $odd) {
$shutdown = $interface["shutdown"] ?? "";
$linktype = $interface["linktype"] ?? "";
$tagged = $interface["tagged"] ?? "0";