mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix null in services (#15945)
This commit is contained in:
@@ -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 = '';
|
||||
|
Reference in New Issue
Block a user