mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
remove warning
git-svn-id: http://www.observium.org/svn/observer/trunk@1769 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -243,7 +243,7 @@ function snmpwalk_cache_multi_oid($device, $oid, $array, $mib = NULL, $mibdir =
|
||||
{
|
||||
global $cache;
|
||||
|
||||
if (!array_key_exists($oid,$cache['snmp'][$device['device_id']]))
|
||||
if (!(is_array($cache['snmp'][$device['device_id']]) && array_key_exists($oid,$cache['snmp'][$device['device_id']])))
|
||||
{
|
||||
$data = snmp_walk($device, $oid, "-OQUs", $mib, $mibdir);
|
||||
foreach(explode("\n", $data) as $entry)
|
||||
|
Reference in New Issue
Block a user