fix: Fixed graphs for services not working (#5569)

This commit is contained in:
nerdalertdk
2017-01-25 18:41:48 +01:00
committed by Neil Lathwood
parent d526a16042
commit e53503c544

View File

@@ -152,7 +152,7 @@ function poll_service($service)
$DS[$k] = $v['uom'];
}
d_echo("Service DS: "._json_encode($DS)."\n");
if ($service['service_ds'] == "") {
if (($service['service_ds'] == "{}") || ($service['service_ds'] == "")) {
$update['service_ds'] = json_encode($DS);
}