diff --git a/includes/discovery/functions.inc.php b/includes/discovery/functions.inc.php index 70138d908b..e92e989e44 100644 --- a/includes/discovery/functions.inc.php +++ b/includes/discovery/functions.inc.php @@ -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; }