From 694902c61a803a772989afcb0c758a8f396298c4 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Tue, 4 Dec 2012 17:42:47 +0000 Subject: [PATCH] Fixing devStateIcon (0 should work) git-svn-id: https://svn.fhem.de/fhem/trunk@2266 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/01_FHEMWEB.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/01_FHEMWEB.pm b/fhem/FHEM/01_FHEMWEB.pm index eee10f0dd..b2182f588 100755 --- a/fhem/FHEM/01_FHEMWEB.pm +++ b/fhem/FHEM/01_FHEMWEB.pm @@ -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 } }