Fixing devStateIcon (0 should work)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@2266 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2012-12-04 17:42:47 +00:00
parent e457b77f27
commit 9e1de276b3

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
}
}