fix: Fixed checks for $entPhysicalIndex/$hrDeviceIndex being numeric (#6907)

This commit is contained in:
Neil Lathwood
2017-06-28 22:03:35 +01:00
committed by Tony Murray
parent 7e1f7f53e3
commit 929d7ece56

View File

@ -676,11 +676,11 @@ function discover_mempool(&$valid, $device, $index, $type, $descr, $precision =
'mempool_total' => 0,
);
if (!empty($entPhysicalIndex)) {
if (is_numeric($entPhysicalIndex)) {
$insert_data['entPhysicalIndex'] = $entPhysicalIndex;
}
if (!empty($hrDeviceIndex)) {
if (is_numeric($hrDeviceIndex)) {
$insert_data['hrDeviceIndex'] = $hrDeviceIndex;
}