2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-05 17:48:44 +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:
rudolfkoenig 2012-12-04 17:42:47 +00:00
parent cc5ea5e96b
commit 694902c61a

View File

@ -2337,7 +2337,7 @@ FW_dev2image($)
my @list = split(" ", $devStateIcon);
foreach my $l (@list) {
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
}
}