Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8513/phpicalendar/functions
Modified Files:
calendar_functions.php date_functions.php init.inc.php
Log Message:
deal with various unset variable warning situations
Index: calendar_functions.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/calendar_functions.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** calendar_functions.php 11 Nov 2006 20:25:36 -0000 1.25
--- calendar_functions.php 12 Oct 2007 06:41:33 -0000 1.26
***************
*** 208,211 ****
--- 208,212 ----
global $cal, $ALL_CALENDARS_COMBINED, $current_view, $getdate, $calendar_lang, $all_cal_comb_lang, $cal_filelist, $cal_displaynames;
// Print each calendar option.
+ $return = '';
foreach ($cals as $cal_tmp) {
// Format the calendar path for display.
Index: date_functions.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/date_functions.php,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -d -r1.37 -r1.38
*** date_functions.php 12 Nov 2006 08:06:30 -0000 1.37
--- date_functions.php 12 Oct 2007 06:41:33 -0000 1.38
***************
*** 237,240 ****
--- 237,241 ----
$unixtime = strtotime($data);
$date = date('Ymd', $unixtime);
+ $time = '';
$allday = $data;
}
Index: init.inc.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/init.inc.php,v
retrieving revision 1.111
retrieving revision 1.112
diff -C2 -d -r1.111 -r1.112
*** init.inc.php 23 May 2007 11:51:07 -0000 1.111
--- init.inc.php 12 Oct 2007 06:41:33 -0000 1.112
***************
*** 51,55 ****
}
#set up specific webcals for a particular cpath
! if (is_array($more_webcals[$cpath])){
$list_webcals = array_merge($list_webcals, $more_webcals["$cpath"]);
}
--- 51,55 ----
}
#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"]);
}
|