diff --git a/includes/discovery/sensors/temperature/websensor.inc.php b/includes/discovery/sensors/temperature/websensor.inc.php index 0f3e82179c..1529975a9f 100644 --- a/includes/discovery/sensors/temperature/websensor.inc.php +++ b/includes/discovery/sensors/temperature/websensor.inc.php @@ -51,7 +51,7 @@ if ($oids) { } $temp_unit = snmp_get($device, 'tempUnit.0', '-OevTQUs', 'T3610-MIB'); -$user_func = ''; +$user_func = null; if (Str::contains($temp_unit, 'F')) { $user_func = 'fahrenheit_to_celsius';