Fix an error message when no sensor is configured

This commit is contained in:
Daniel Berteaud 2013-04-16 13:15:34 +02:00
parent 166443918f
commit e85d56f105
1 changed files with 1 additions and 1 deletions

View File

@ -17,5 +17,5 @@ foreach (<SENSORS>){
};
}
close SENSORS;
print to_json($json);
print to_json($json) if (defined $json->{data});
exit(0);