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 a13251dae5
commit fbeff5b72a

View File

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