aboutsummaryrefslogtreecommitdiffstats
path: root/include/calendar_base.class.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/calendar_base.class.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/calendar_base.class.php b/include/calendar_base.class.php
index 5d358f4ad..ee17c1ac7 100644
--- a/include/calendar_base.class.php
+++ b/include/calendar_base.class.php
@@ -261,8 +261,14 @@ SELECT DISTINCT('.$this->calendar_levels[$level]['sql']
}
}
+ $dates = $page['chronology_date'];
+ while ($level<count($dates))
+ {
+ array_pop($dates);
+ }
+
$nav_bar = $this->get_nav_bar_from_items(
- $page['chronology_date'],
+ $dates,
$level_items,
null,
'calItem',