mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
fix for ...,0,... bug in <{...}>
git-svn-id: https://svn.fhem.de/fhem/trunk@4964 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
35b318560d
commit
03c33d6e28
@ -362,7 +362,7 @@ readingsGroup_2html($)
|
|||||||
#foreach my $regex (@list) {
|
#foreach my $regex (@list) {
|
||||||
for( my $i = 0; $i <= $#list; ++$i ) {
|
for( my $i = 0; $i <= $#list; ++$i ) {
|
||||||
my $regex = $list[$i];
|
my $regex = $list[$i];
|
||||||
while ($regex && $regex =~ m/^</ && $regex !~ m/>$/ && $list[++$i] ) {
|
while ($regex && $regex =~ m/^</ && $regex !~ m/>$/ && defined($list[++$i]) ) {
|
||||||
$regex .= ",". $list[$i];
|
$regex .= ",". $list[$i];
|
||||||
}
|
}
|
||||||
my $h = $h;
|
my $h = $h;
|
||||||
@ -659,7 +659,7 @@ readingsGroup_Notify($$)
|
|||||||
#foreach my $regex (@list) {
|
#foreach my $regex (@list) {
|
||||||
for( my $i = 0; $i <= $#list; ++$i ) {
|
for( my $i = 0; $i <= $#list; ++$i ) {
|
||||||
my $regex = $list[$i];
|
my $regex = $list[$i];
|
||||||
while ($regex && $regex =~ m/^</ && $regex !~ m/>$/ && $list[++$i] ) {
|
while ($regex && $regex =~ m/^</ && $regex !~ m/>$/ && defined($list[++$i]) ) {
|
||||||
$regex .= ",". $list[$i];
|
$regex .= ",". $list[$i];
|
||||||
}
|
}
|
||||||
next if( $reading eq "state" && !$show_state && (!defined($regex) || $regex ne "state") );
|
next if( $reading eq "state" && !$show_state && (!defined($regex) || $regex ne "state") );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user