mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02: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;
|
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);
|
$data = snmp_walk($device, $oid, "-OQUs", $mib, $mibdir);
|
||||||
foreach(explode("\n", $data) as $entry)
|
foreach(explode("\n", $data) as $entry)
|
||||||
|
|||||||
Reference in New Issue
Block a user