Răsfoiți Sursa

restore forgotten button

Roman Dmitriev 2 ani în urmă
părinte
comite
ef73c64f20
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      html/admin/devices/switchstatus.php

+ 2 - 2
html/admin/devices/switchstatus.php

@@ -343,10 +343,10 @@ print_editdevice_submenu($page_url, $id, $device['device_type'], $user_info['log
             if (isset($ports_state_detail[$row['snmp_index']]['admin_status']) and !$row['uplink'] and !$row['skip'] and !$device['is_router']) {
                 print "<td class=\"data\">";
                 if ($device['vendor_id'] != 9) {
-                    if ($ports_state_detail[$row['snmp_index']]['admin_status'] >= 2) {
+                    if ($padmin >= 2) {
                         print "<button name='port_on[]' value='{$row['snmp_index']}'>" . WEB_device_port_on . "</button>";
                     }
-                    if ($ports_state_detail[$row['snmp_index']]['admin_status'] == 1) {
+                    if ($padmin == 1) {
                         print "<button name='port_off[]' value='{$row['snmp_index']}'>" . WEB_device_port_off . "</button>";
                     }
                 } else {