Explorar o código

fixe edit subnet form

Roman Dmitriev %!s(int64=2) %!d(string=hai) anos
pai
achega
014519c360
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      html/admin/customers/editsubnet.php

+ 2 - 0
html/admin/customers/editsubnet.php

@@ -7,6 +7,8 @@ require_once($_SERVER['DOCUMENT_ROOT'] . "/inc/idfilter.php");
 if (isset($_POST['s_save'])) {
 
         $new['subnet'] = trim($_POST['s_subnet']);
+        $new['vlan'] = trim($_POST['s_vlan'])*1;
+        if (empty($new['vlan']) or ($new['vlan']<1 or $new['vlan']>4096)) { $new['vlan'] =1; }
         $new['office'] = $_POST['s_office'] * 1;
         $new['hotspot'] = $_POST['s_hotspot'] * 1;
         $new['vpn'] = $_POST['s_vpn'] * 1;