Skip to content

Commit 62ceba3

Browse files
author
Jason Oster
committed
Merge with 2.4 branch
1 parent 1c7eaa2 commit 62ceba3

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

functions/parse/recur_functions.php

+3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ function add_recur($times,$freq=''){
4848
&& $count >= 0
4949
) $recur_data[] = $time;
5050
}
51+
else if (in_array($date, $except_dates)) {
52+
$count--;
53+
}
5154
}
5255
#dump_times($recur_data);
5356
return;

functions/template.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ function draw_search($template_p) {
186186
if (!isset($val['exceptions'])) {
187187
$events_tmp = preg_replace('!<\!-- switch exceptions on -->.*<\!-- switch exceptions off -->!Uis', '', $events_tmp);
188188
}else{
189-
$some_exceptions = "";
189+
$some_exceptions = '';
190190
foreach ($val['exceptions'] as $except_val){
191191
$except_tmp = $loop_except;
192192

@@ -267,9 +267,9 @@ function draw_week($template_p) {
267267
if (isset($master_array[$thisday])) {
268268
foreach($master_array[($thisday)] as $ovlKey => $ovlValue) {
269269
# ovlKey is a time slot; $ovlValue is an array with key=uid
270-
if ($ovlKey != "-1") {
270+
if ($ovlKey != '-1') {
271271
foreach($ovlValue as $ovl2Value) {
272-
$nbrGridCols[$thisday] = kgv($nbrGridCols[$thisday], ($ovl2Value["event_overlap"] + 1));
272+
$nbrGridCols[$thisday] = kgv($nbrGridCols[$thisday], ($ovl2Value['event_overlap'] + 1));
273273
}
274274
}
275275
}

0 commit comments

Comments
 (0)