33_readingsHistory.pm: fixed uninitialized value warning

git-svn-id: https://svn.fhem.de/fhem/trunk@8951 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2015-07-12 21:45:34 +00:00
parent 2b4735bd59
commit cae8e09ca5

View File

@@ -227,6 +227,8 @@ readingsHistory_lookup2($$$$)
$lookup = $vf;
}
return $lookup if( !defined($lookup) );
if( !ref($lookup) && $lookup =~ m/^{.*}$/) {
my $DEVICE = $name;
my $READING = $reading;