diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-02-06 04:54:43 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-02-06 04:54:43 +0000 |
commit | fed8bd8a84209a71224353fd37176f7f494e2f5d (patch) | |
tree | e98724cdc0a83234ec147b2c165ee8911f8384a5 /functions | |
parent | 014332905f5f2266ecdbeedbf3b12d16091d753c (diff) | |
download | phpicalendar-fed8bd8a84209a71224353fd37176f7f494e2f5d.tar.gz phpicalendar-fed8bd8a84209a71224353fd37176f7f494e2f5d.tar.bz2 phpicalendar-fed8bd8a84209a71224353fd37176f7f494e2f5d.zip |
Tomorrow's events turn off when none are present.
Diffstat (limited to 'functions')
-rw-r--r-- | functions/template.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/functions/template.php b/functions/template.php index ab0c742..6781efc 100644 --- a/functions/template.php +++ b/functions/template.php @@ -79,10 +79,15 @@ class Page { } } } - } - $this->page = ereg_replace('<!-- switch t_allday on -->(.*)<!-- switch t_allday off -->', $replace_ad, $this->page); - $this->page = ereg_replace('<!-- switch t_event on -->(.*)<!-- switch t_event off -->', $replace_e, $this->page); + $this->page = ereg_replace('<!-- switch t_allday on -->(.*)<!-- switch t_allday off -->', $replace_ad, $this->page); + $this->page = ereg_replace('<!-- switch t_event on -->(.*)<!-- switch t_event off -->', $replace_e, $this->page); + + } else { + + $this->page = ereg_replace('<!-- switch tomorrows_events on -->(.*)<!-- switch tomorrows_events off -->', '', $this->page); + + } } function draw_month($template_p, $offset = '+0', $type) { |