--- theme/theme.inc.orig 2008-12-02 17:12:30.000000000 +0100 +++ theme/theme.inc 2008-12-02 17:13:45.000000000 +0100 @@ -312,7 +312,7 @@ } // Find the next time slot and fill it. Populate the skipped // slots if the option to show empty times was chosen. - while ($time > $next_start_time && $time < $end_start_time) { + while ($time >= $next_start_time && $time < $end_start_time) { if ((!empty($show_empty_times)) && !array_key_exists($start_time, $grouped_items)) { $grouped_items[$start_time]['values'] = array(); } @@ -401,7 +401,7 @@ foreach ($items as $item) { // Find the next time slot and fill it. Populate the skipped // slots if the option to show empty times was chosen. - while ($time > $next_start_time && $time < $end_start_time) { + while ($time >= $next_start_time && $time < $end_start_time) { if (($show_empty_times) && !array_key_exists($start_time, $grouped_items)) { $grouped_items[$start_time]['values'][$weekno] = array(); }