More fixed checks for $entPhysicalIndex/$hrDeviceIndex being numeric like 929d7ece563f9e7d23fce4e227c5bb6d551b2059 (#8295)

This commit is contained in:
James Andrewartha
2018-02-26 12:27:28 +08:00
committed by Tony Murray
parent 1792a9cd02
commit f154846de1

View File

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