@@ -110,7 +110,7 @@ function flatten_ol_blocks($event_date, $ol_blocks, $new_block_key) {
110
110
111
111
// Builds $overlap_array structure, and updates event_overlap in $master_array for the given events.
112
112
// For a given date,
113
- // - check to see if the event's already in a block, and if so, add it.
113
+ // - check to see if the event's already in a block, and if so, add it.
114
114
// - make sure the new block doesn't overlap another block, and if so, merge the blocks.
115
115
// - check that there aren't any events we already passed that we should handle.
116
116
// - "flatten" the structure again, merging the blocks.
@@ -182,7 +182,9 @@ function checkOverlap($event_date, $event_time, $uid) {
182
182
foreach ($ time as $ loop_event_key => $ loop_event ) {
183
183
// Make sure we haven't already dealt with the event, and we're not checking against ourself.
184
184
if ($ loop_event ['event_overlap ' ] == 0 && $ loop_event_key != $ uid ) {
185
- $ loopDrawTimes = drawEventTimes ($ loop_event ['event_start ' ], $ loop_event ['display_end ' ]);
185
+ $ loopDrawTimes = drawEventTimes ($ loop_event ['event_start ' ], $ loop_event ['display_end ' ], ($ loop_event ['event_length ' ] >= (60 *60 *24 )));
186
+ if ($ event_time == "0000 " ) $ loopDrawTimes ['draw_start ' ] = "0000 " ;
187
+ if ($ draw_end == "2400 " ) $ loopDrawTimes ['draw_end ' ] = "2400 " ;
186
188
if ($ loopDrawTimes ['draw_start ' ] < $ drawTimes ['draw_end ' ] && $ loopDrawTimes ['draw_end ' ] > $ drawTimes ['draw_start ' ]) {
187
189
if ($ loopDrawTimes ['draw_start ' ] < $ drawTimes ['draw_start ' ]) {
188
190
$ block_start = $ loopDrawTimes ['draw_start ' ];
0 commit comments