Set array before use (#15604)

This commit is contained in:
Neil Lathwood
2023-11-29 22:18:26 +00:00
committed by GitHub
parent ad805f4504
commit 3be233af57

View File

@@ -6,6 +6,7 @@ echo 'AXIS Temperatures ';
$oids_tmp = snmpwalk_cache_multi_oid($device, 'tempSensorTable', [], 'AXIS-VIDEO-MIB');
$cur_oid = '.1.3.6.1.4.1.368.4.1.3.1.4.1.';
$oids = [];
// Exclude from $oids content .common string
foreach ($oids_tmp as $key_oids_tmp => $val_oids_tmp) {
$oids[str_replace('common.', '', $key_oids_tmp)] = $val_oids_tmp;