2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

57_CALVIEW.pm: -fixed duration reading if no duration

git-svn-id: https://svn.fhem.de/fhem/trunk@17022 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
chris1284 2018-07-23 06:00:42 +00:00
parent 92acbdb8a0
commit e969362be7

View File

@ -224,6 +224,7 @@ sub CALVIEW_GetUpdate($){
Log3 $name , 5, "CALVIEW $name - nextday = $nextday , endday = $endday , startday = $startday , btime ".$termin->{btime}." , etime ".$termin->{etime}."";
#if( $endday eq $nextday && $termin->{btime} eq $termin->{etime} ){ $timeshort = AttrVal($name,"fulldaytext","ganztägig"); }
if( $termin->{duration} == 86400 ){ $termin->{duration} = AttrVal($name,"fulldaytext","ganztägig"); }
elsif (!defined $termin->{duration}){$termin->{duration} = "keine Laufzeit";}
else {
if(AttrVal($name,"timeshort","0") eq 0) {$timeshort = $termin->{btime}." - ".$termin->{etime}; }
elsif(AttrVal($name,"timeshort","0") eq 1) {