2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

FHEMWEB: fix showtime checking for 0 (Forum #34322)

git-svn-id: https://svn.fhem.de/fhem/trunk@8094 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-02-25 06:16:53 +00:00
parent 863bad80f3
commit bd5ac0e326

View File

@ -2420,7 +2420,7 @@ FW_devState($$@)
my $txt = $state; my $txt = $state;
my $dsi = ($attr{$d} && ($attr{$d}{stateFormat} || $attr{$d}{devStateIcon})); my $dsi = ($attr{$d} && ($attr{$d}{stateFormat} || $attr{$d}{devStateIcon}));
if(defined(AttrVal($d, "showtime", undef))) { if(AttrVal($d, "showtime", undef)) {
my $v = $defs{$d}{READINGS}{state}{TIME}; my $v = $defs{$d}{READINGS}{state}{TIME};
$txt = $v if(defined($v)); $txt = $v if(defined($v));