2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

Unit.pm: make rtype reading attribute mandatory

git-svn-id: https://svn.fhem.de/fhem/trunk@12971 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2017-01-05 23:20:02 +00:00
parent c49bf811e0
commit 5cbf51cef9

View File

@ -2872,7 +2872,7 @@ sub replaceTemplate ($$$$;$) {
&& defined( $odesc->{value}{$lang} ) );
return $value
if ( !defined($value) || $value eq "" );
if ( !defined($value) || $value eq "" || !defined( $odesc->{rtype} ) );
# clone
my $desc;