From 8809779b82e371297dcff6c522240b8f55fa507b Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Thu, 6 Apr 2023 21:09:31 -0500 Subject: [PATCH] RouterOS runtime quirk on first discovery (#14945) (assume version is > 6.47 if it isn't fetched yet) fixes #14935 --- includes/discovery/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/discovery/functions.inc.php b/includes/discovery/functions.inc.php index 8bd0e1d225..42d0b96415 100644 --- a/includes/discovery/functions.inc.php +++ b/includes/discovery/functions.inc.php @@ -799,7 +799,7 @@ function get_device_divisor($device, $os_version, $sensor_type, $oid) } if (Str::startsWith($oid, '.1.3.6.1.2.1.33.1.2.3.')) { - if ($device['os'] == 'routeros' && version_compare($device['version'], '6.47', '<')) { + if ($device['os'] == 'routeros' && $device['version'] && version_compare($device['version'], '6.47', '<')) { return 60; }