fix null in services (#15945)

This commit is contained in:
Tony Murray
2024-04-14 16:48:13 -05:00
committed by GitHub
parent 5828907b23
commit 1c4d92341f

View File

@@ -259,8 +259,8 @@ function check_service($command)
[$ds,$values] = explode('=', trim($string));
// Keep the first value, discard the others.
[$value] = explode(';', trim($values));
$value = trim($value);
$value = explode(';', trim($values));
$value = trim($value[0] ?? '');
// Set an empty uom
$uom = '';