mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 18:38:25 +00:00
Fix for cimc polling on PHP8 (#13357)
This commit is contained in:
parent
16584d8090
commit
45ab7a5cf0
@ -18,7 +18,7 @@ $components = $component->getComponents($device['device_id'], ['type'=>'Cisco-CI
|
||||
$components = $components[$device['device_id']];
|
||||
|
||||
// Only collect SNMP data if we have enabled components
|
||||
if (count($components > 0)) {
|
||||
if (! empty($components)) {
|
||||
// Let's gather some data..
|
||||
$tblUCSObjects = snmpwalk_array_num($device, '.1.3.6.1.4.1.9.9.719.1', 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user