From 2e26a1297de73ef09a87f9e4e97ed2090a448275 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Tue, 5 Dec 2006 08:40:18 +0000 Subject: fix display of status and recur icons --- functions/template.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'functions') diff --git a/functions/template.php b/functions/template.php index 30c866c..aa52124 100644 --- a/functions/template.php +++ b/functions/template.php @@ -446,9 +446,12 @@ class Page { $event_start = date ($timeFormat_small, $event_start); $event_calno = $this_time_arr[$uid]['calnumber']; $event_status = strtolower($this_time_arr[$uid]['status']); + $event_recur = $this_time_arr[$uid]['recur']; $event_calno = (($event_calno - 1) % $unique_colors) + 1; + $confirmed = ''; + if (is_array($event_recur)) $confirmed .= ' '; if ($event_status != '') { - $confirmed = ' '; + $confirmed .= ' '; } $colspan_width = round((80 / $nbrGridCols[$thisday]) * $drawWidth); $weekdisplay .= ''."\n"; @@ -666,11 +669,9 @@ class Page { $event_recur = $this_time_arr[$uid]['recur']; $event_status = strtolower($this_time_arr[$uid]['status']); $event_calno = (($event_calno - 1) % $unique_colors) + 1; - if ($event_status != '') { - $confirmed = ' '; - } elseif (is_array($event_recur)) { - $confirmed = ' '; - } + $confirmed = ''; + if (is_array($event_recur)) $confirmed .= ' '; + if ($event_status != '') $confirmed .= ' '; $colspan_width = round((460 / $nbrGridCols) * $drawWidth); $daydisplay .= ''."\n"; -- cgit v1.2.3