diff options
Diffstat (limited to '')
-rw-r--r-- | include/calendar_weekly.class.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/calendar_weekly.class.php b/include/calendar_weekly.class.php index 786f90c68..817acb1b0 100644 --- a/include/calendar_weekly.class.php +++ b/include/calendar_weekly.class.php @@ -80,15 +80,19 @@ function generate_category_content($url_base, $view_type) assert($view_type==CAL_VIEW_LIST); - $this->build_nav_bar(CYEAR); // years - if ( count($this->date_components)>=1 ) + if ( count($this->date_components)==0 ) + { + $this->build_nav_bar(CYEAR); // years + } + if ( count($this->date_components)==1 ) { $this->build_nav_bar(CWEEK); // week nav bar 1-53 } - if ( count($this->date_components)>=2 ) + if ( count($this->date_components)==2 ) { $this->build_nav_bar(CDAY); // days nav bar Mon-Sun } + $this->build_next_prev(); return false; } |