Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8878/phpicalendar/functions
Modified Files:
list_functions.php
Log Message:
deal with various unset variable warning situations
Index: list_functions.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/list_functions.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** list_functions.php 15 Dec 2005 03:26:31 -0000 1.16
--- list_functions.php 12 Oct 2007 06:42:32 -0000 1.17
***************
*** 15,18 ****
--- 15,19 ----
function list_calcolors() {
global $template, $master_array, $unique_colors;
+ $return = '';
$i = 1;
if (is_array($master_array['-3'])) {
***************
*** 31,34 ****
--- 32,36 ----
$month_time = strtotime("$this_year-01-01");
$getdate_month = date("m", strtotime($getdate));
+ $return = '';
for ($i=0; $i<12; $i++) {
$monthdate = date ("Ymd", $month_time);
***************
*** 49,52 ****
--- 51,55 ----
global $getdate, $this_year, $cal, $num_years;
$year_time = strtotime($getdate);
+ $return = '';
for ($i=0; $i < $num_years; $i++) {
$offset = $num_years - $i;
***************
*** 82,85 ****
--- 85,89 ----
$start_week_time = strtotime(dateOfWeek(date("Ymd", strtotime("$this_year-01-01")), $week_start_day));
$end_week_time = $start_week_time + (6 * 25 * 60 * 60);
+ $return = '';
do {
***************
*** 102,105 ****
--- 106,110 ----
function list_languages() {
global $getdate, $cal, $current_view;
+ $return = '';
$dir_handle = @opendir(BASE.'languages/');
$tmp_pref_language = urlencode(ucfirst($language));
|