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