From 24757cf84fd2e4642ed68a0d48bb8ff75cc8d938 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sun, 8 Aug 2004 05:55:17 +0000 Subject: Cleaned up calendar colors and added error message for caching. --- functions/list_functions.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'functions/list_functions.php') diff --git a/functions/list_functions.php b/functions/list_functions.php index cfc1745..1927a68 100644 --- a/functions/list_functions.php +++ b/functions/list_functions.php @@ -11,9 +11,12 @@ function list_jumps() { } function list_calcolors() { - global $template, $master_array; + global $template, $master_array, $unique_colors; + $i = 1; foreach ($master_array['-3'] as $key => $val) { - $return .= ' '.$val.'
'; + if ($i > $unique_colors) $i = 1; + $return .= ' '.$val.'
'; + $i++; } return $return; } -- cgit v1.2.3