diff --git a/calendar/inc/class.bocalendar.inc.php b/calendar/inc/class.bocalendar.inc.php index 868eb3afa6..af9a964b69 100755 --- a/calendar/inc/class.bocalendar.inc.php +++ b/calendar/inc/class.bocalendar.inc.php @@ -758,10 +758,11 @@ print_debug('ID',$l_cal['id']); // don't wrap to the next day for no time - if ($l_end['hour'] == 24 || $l_end['min'] == 0) { + if ($l_end['hour'] == 24 && $l_end['min'] == 0) + { $l_end['hour'] = 23; $l_end['min'] = 59; - } + } if(isset($_GET['readsess'])) {