mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
98_DOIF.pm: array bug fixed
git-svn-id: https://svn.fhem.de/fhem/trunk@20191 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
75cbf91a26
commit
9358314e99
@ -2208,18 +2208,18 @@ sub CheckRegexpDoIf
|
||||
}
|
||||
return $i;
|
||||
}
|
||||
my $events_temp;
|
||||
my @events_temp;
|
||||
if (substr($i,0,1) eq '"') {
|
||||
$events_temp=$eventa;
|
||||
@events_temp=@{$eventa};
|
||||
}
|
||||
else {
|
||||
$events_temp=$eventas;
|
||||
@events_temp=@{$eventas};
|
||||
}
|
||||
my $max=defined $events_temp ? int(@{$events_temp}):0;
|
||||
#my $max=defined @events_temp ? int(@events_temp):0;
|
||||
my $s;
|
||||
my $found;
|
||||
for (my $j = 0; $j < $max; $j++) {
|
||||
$s = $events_temp->[$j];
|
||||
for (my $j = 0; $j < @events_temp; $j++) {
|
||||
$s = $events_temp[$j];
|
||||
$s = "" if(!defined($s));
|
||||
$found = ($s =~ m/$notifyExp/);
|
||||
if ($found) {
|
||||
|
Loading…
Reference in New Issue
Block a user