mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Do not try to fetch data again if previous attempts failed (#9139)
result is null, which will fail isset() check
This commit is contained in:
committed by
Neil Lathwood
parent
ade409c4ec
commit
d17eb4faaa
@@ -197,7 +197,7 @@ class YamlDiscovery
|
||||
|
||||
foreach ($data_array as $data) {
|
||||
foreach ((array)$data['oid'] as $oid) {
|
||||
if (!isset($pre_cache[$oid])) {
|
||||
if (!array_key_exists($oid, $pre_cache)) {
|
||||
if (isset($data['snmp_flags'])) {
|
||||
$snmp_flag = $data['snmp_flags'];
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user