fixed waring for undef valueFormat {...}

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@4784 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2014-02-01 23:05:06 +00:00
parent 82f164538b
commit 092f1fd25f

View File

@@ -217,6 +217,8 @@ lookup2($$$$)
$lookup = "" if( $@ );
}
return $lookup if( !defined($lookup) );
$lookup =~ s/\%DEVICE/$name/g;
$lookup =~ s/\%READING/$reading/g;
$lookup =~ s/\%VALUE/$value/g;