mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Fixed checks for $entPhysicalIndex/$hrDeviceIndex being numeric (#6907)
This commit is contained in:
committed by
Tony Murray
parent
7e1f7f53e3
commit
929d7ece56
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user