Fix a typo.

This commit is contained in:
Ramon Novoa 2019-06-04 15:54:32 +02:00
parent e72a55b4f3
commit 51f57e9247
1 changed files with 2 additions and 2 deletions

View File

@ -447,9 +447,9 @@ function snmp_browser_get_oid(
$oid_data['description'] = $custom_data['description'];
}
$full_value = explode(':', trim($full_oid[1]));
$full_value = explode(':', trim($value));
if (! isset($full_value[1])) {
$oid_data['value'] = trim($full_oid[1]);
$oid_data['value'] = trim($value);
} else {
$oid_data['type'] = trim($full_value[0]);
$oid_data['value'] = trim($full_value[1]);