mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-07 12:58:13 +00:00
Fixing devStateIcon (0 should work)
git-svn-id: https://svn.fhem.de/fhem/trunk@2266 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cc5ea5e96b
commit
694902c61a
@ -2337,7 +2337,7 @@ FW_dev2image($)
|
|||||||
my @list = split(" ", $devStateIcon);
|
my @list = split(" ", $devStateIcon);
|
||||||
foreach my $l (@list) {
|
foreach my $l (@list) {
|
||||||
my ($re,$iconName) = split(":", $l);
|
my ($re,$iconName) = split(":", $l);
|
||||||
if($re && $state =~ m/^$re$/) {
|
if(defined($re) && $state =~ m/^$re$/) {
|
||||||
return FW_getIcon($iconName); # Can be used to preserve text
|
return FW_getIcon($iconName); # Can be used to preserve text
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user