mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-25 03:39:21 +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:
parent
e14640a195
commit
d93e655b88
@ -157,7 +157,7 @@ AttrTemplate_Set($$@)
|
|||||||
$perl_code =~ s/\\DEVICE/DEVICE/g;
|
$perl_code =~ s/\\DEVICE/DEVICE/g;
|
||||||
my $ret = eval $perl_code;
|
my $ret = eval $perl_code;
|
||||||
return "Error checking template regexp: $@" if($@);
|
return "Error checking template regexp: $@" if($@);
|
||||||
if($ret) {
|
if(defined($ret)) {
|
||||||
$repl{$parname} = $ret;
|
$repl{$parname} = $ret;
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user