diff --git a/html/css/styles.css b/html/css/styles.css index 1bb0ff0fb..86cee8799 100644 --- a/html/css/styles.css +++ b/html/css/styles.css @@ -800,7 +800,7 @@ color: #cc0000; .contentstyle{ border: 1px solid #aaaaaa; - width: 1175px; + width: 1176px; margin-bottom: 1em; padding: 10px; float: left; diff --git a/html/pages/device/port/arp.inc.php b/html/pages/device/port/arp.inc.php index 9c8113145..0149f11eb 100644 --- a/html/pages/device/port/arp.inc.php +++ b/html/pages/device/port/arp.inc.php @@ -1,4 +1,4 @@ - '0' && $allow) { + if((strstr($fstype, "FlashMemory") || strstr($fstype, "FixedDisk") || strstr($fstype, "Ram") || strstr($fstype, "VirtualMemory")) && $size > '0' && $allow) { if(mysql_result(mysql_query("SELECT count(storage_id) FROM `storage` WHERE hrStorageIndex = '$hrStorageIndex' AND host_id = '".$device['device_id']."'"),0) == '0') { $query = "INSERT INTO storage (`host_id`, `hrStorageIndex`, `hrStorageType`, `hrStorageDescr`,`hrStorageSize`,`hrStorageAllocationUnits`) "; $query .= "values ('".$device['device_id']."', '$hrStorageIndex', '$fstype', '$descr', '$size', '$units')";