98_DOIF.pm: fixed cmdList="";

git-svn-id: https://svn.fhem.de/fhem/trunk@13404 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Damian 2017-02-12 19:53:30 +00:00
parent d40ce8a517
commit d6167c0fac

View File

@ -2021,7 +2021,7 @@ DOIF_Set($@)
} else { } else {
my $setList = AttrVal($pn, "setList", " "); my $setList = AttrVal($pn, "setList", " ");
$setList =~ s/\n/ /g; $setList =~ s/\n/ /g;
my $cmdList; my $cmdList="";
my $max_cond=keys %{$hash->{condition}}; my $max_cond=keys %{$hash->{condition}};
$max_cond++ if (defined ($hash->{do}{$max_cond}{0}) or ($max_cond == 1 and !(AttrVal($pn,"do","") or AttrVal($pn,"repeatsame","")))); $max_cond++ if (defined ($hash->{do}{$max_cond}{0}) or ($max_cond == 1 and !(AttrVal($pn,"do","") or AttrVal($pn,"repeatsame",""))));
for (my $i=0; $i <$max_cond;$i++) { for (my $i=0; $i <$max_cond;$i++) {