Fix for cimc polling on PHP8 (#13357)

This commit is contained in:
Tony Murray 2021-10-13 08:16:39 -05:00 committed by GitHub
parent 16584d8090
commit 45ab7a5cf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);