aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--functions/parse/recur_functions.php3
-rw-r--r--functions/template.php6
2 files changed, 6 insertions, 3 deletions
diff --git a/functions/parse/recur_functions.php b/functions/parse/recur_functions.php
index ceab4e4..76cb30b 100644
--- a/functions/parse/recur_functions.php
+++ b/functions/parse/recur_functions.php
@@ -48,6 +48,9 @@ function add_recur($times,$freq=''){
&& $count >= 0
) $recur_data[] = $time;
}
+ else if (in_array($date, $except_dates)) {
+ $count--;
+ }
}
#dump_times($recur_data);
return;
diff --git a/functions/template.php b/functions/template.php
index 002cf15..95ebabf 100644
--- a/functions/template.php
+++ b/functions/template.php
@@ -186,7 +186,7 @@ class Page {
if (!isset($val['exceptions'])) {
$events_tmp = preg_replace('!<\!-- switch exceptions on -->.*<\!-- switch exceptions off -->!Uis', '', $events_tmp);
}else{
- $some_exceptions = "";
+ $some_exceptions = '';
foreach ($val['exceptions'] as $except_val){
$except_tmp = $loop_except;
@@ -267,9 +267,9 @@ class Page {
if (isset($master_array[$thisday])) {
foreach($master_array[($thisday)] as $ovlKey => $ovlValue) {
# ovlKey is a time slot; $ovlValue is an array with key=uid
- if ($ovlKey != "-1") {
+ if ($ovlKey != '-1') {
foreach($ovlValue as $ovl2Value) {
- $nbrGridCols[$thisday] = kgv($nbrGridCols[$thisday], ($ovl2Value["event_overlap"] + 1));
+ $nbrGridCols[$thisday] = kgv($nbrGridCols[$thisday], ($ovl2Value['event_overlap'] + 1));
}
}
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy