[geeklog-cvs] Geeklog-1.x/plugins/calendar functions.inc, 1.93, 1.94

Dirk Haun dhaun at qs1489.pair.com
Sun Aug 3 13:43:58 EDT 2008


Update of /cvsroot/geeklog/Geeklog-1.x/plugins/calendar
In directory qs1489.pair.com:/tmp/cvs-serv22685/plugins/calendar

Modified Files:
	functions.inc 
Log Message:
Be more fault-tolerant in case $_CA_CONF['event_types'] was not set properly (for bug #0000690)


Index: functions.inc
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/calendar/functions.inc,v
retrieving revision 1.93
retrieving revision 1.94
diff -C2 -d -r1.93 -r1.94
*** functions.inc	6 Jul 2008 20:16:59 -0000	1.93
--- functions.inc	3 Aug 2008 17:43:55 -0000	1.94
***************
*** 1792,1796 ****
      $retval = '';
  
!     $event_types = $_CA_CONF['event_types'];
      asort($event_types);
  
--- 1792,1801 ----
      $retval = '';
  
!     if (!isset($_CA_CONF['event_types']) ||
!             !is_array($_CA_CONF['event_types'])) {
!         $event_types = array();
!     } else {
!         $event_types = $_CA_CONF['event_types'];
!     }
      asort($event_types);
  




More information about the geeklog-cvs mailing list