From d6405b94fff1853f6654ecb85eea79721827b6ca Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Sun, 28 Dec 2008 10:50:57 +0000 Subject: kill admin.php; misc other changes; bump rc num --- functions/init/cpaths.php | 4 ++-- functions/init/date_range.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'functions/init') diff --git a/functions/init/cpaths.php b/functions/init/cpaths.php index 773f3cb..e728654 100644 --- a/functions/init/cpaths.php +++ b/functions/init/cpaths.php @@ -26,7 +26,7 @@ if (isset($user_template["$cpath"])){ $template = $user_template["$cpath"]; } #set up specific webcals for a particular cpath -if (isset($more_webcals) && is_array($more_webcals[$cpath])){ - $list_webcals = array_merge($list_webcals, $more_webcals["$cpath"]); +if (isset($more_webcals[$cpath]) && is_array($more_webcals[$cpath])){ + foreach ($more_webcals[$cpath] as $wcal)$list_webcals[] = $wcal; } $phpiCal_config->setProperty('calendar_path',$calendar_path); \ No newline at end of file diff --git a/functions/init/date_range.php b/functions/init/date_range.php index d9f7b54..81e9190 100644 --- a/functions/init/date_range.php +++ b/functions/init/date_range.php @@ -33,6 +33,7 @@ switch ($current_view){ $mArray_begin = mktime (0,0,0,$start_month,1,($start_year)); $mArray_end = mktime (0,0,0,$end_month,31,($end_year)); break; + case 'admin': case 'error': case 'preferences': $mArray_begin = time(); -- cgit v1.2.3