2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-23 20:52:13 +00:00

fixed bug in FW_dev2image() that prevented icon retrieval for "0" states

git-svn-id: https://svn.fhem.de/fhem/trunk@1921 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2012-10-04 10:43:51 +00:00
parent 979bf952c0
commit 8ce894a161

View File

@ -2209,7 +2209,7 @@ FW_dev2image($)
return "" if(!$name || !$d);
my ($type, $state) = ($d->{TYPE}, $d->{STATE});
return "" if(!$type || !$state);
return "" if(!$type || !defined($state));
my (undef, $rstate) = ReplaceEventMap($name, [undef, $state], 0);
$state =~ s/ .*//; # Want to be able to have icons for "on-for-timer xxx"