2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

AttrTemplate.pm: par checks for undef, not for true (Forum #103731)

git-svn-id: https://svn.fhem.de/fhem/trunk@20170 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-09-16 07:06:59 +00:00
parent e14640a195
commit d93e655b88

View File

@ -157,7 +157,7 @@ AttrTemplate_Set($$@)
$perl_code =~ s/\\DEVICE/DEVICE/g;
my $ret = eval $perl_code;
return "Error checking template regexp: $@" if($@);
if($ret) {
if(defined($ret)) {
$repl{$parname} = $ret;
next;
}