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

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8094 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-02-25 06:16:53 +00:00
parent b4420844f0
commit edf65db1af

View File

@@ -2420,7 +2420,7 @@ FW_devState($$@)
my $txt = $state;
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};
$txt = $v if(defined($v));