From fed8bd8a84209a71224353fd37176f7f494e2f5d Mon Sep 17 00:00:00 2001 From: Chad Little Date: Fri, 6 Feb 2004 04:54:43 +0000 Subject: Tomorrow's events turn off when none are present. --- functions/template.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'functions') 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('(.*)', $replace_ad, $this->page); - $this->page = ereg_replace('(.*)', $replace_e, $this->page); + $this->page = ereg_replace('(.*)', $replace_ad, $this->page); + $this->page = ereg_replace('(.*)', $replace_e, $this->page); + + } else { + + $this->page = ereg_replace('(.*)', '', $this->page); + + } } function draw_month($template_p, $offset = '+0', $type) { -- cgit v1.2.3