From 3fff768de14bb072d7e045fec0ba145de3812a35 Mon Sep 17 00:00:00 2001 From: chris1284 Date: Mon, 23 Jul 2018 06:00:42 +0000 Subject: [PATCH] 57_CALVIEW.pm: -fixed duration reading if no duration git-svn-id: https://svn.fhem.de/fhem/trunk@17022 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/57_CALVIEW.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/fhem/FHEM/57_CALVIEW.pm b/fhem/FHEM/57_CALVIEW.pm index 071234b59..755d9b1e1 100644 --- a/fhem/FHEM/57_CALVIEW.pm +++ b/fhem/FHEM/57_CALVIEW.pm @@ -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) {