From 19286f3c6b55994ba7f3d602bfad4a8a43c349c6 Mon Sep 17 00:00:00 2001 From: skeeter Date: Fri, 28 Sep 2001 02:06:35 +0000 Subject: [PATCH] Small fix for php3 compatibility. --- calendar/inc/class.uicalendar.inc.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.uicalendar.inc.php b/calendar/inc/class.uicalendar.inc.php index ff4453ce2c..307791c070 100755 --- a/calendar/inc/class.uicalendar.inc.php +++ b/calendar/inc/class.uicalendar.inc.php @@ -517,7 +517,9 @@ $this->bo->repeating_events[0] = $event; $datetime = mktime(0,0,0,$this->bo->month,$this->bo->day,$this->bo->year) - $this->tz_offset; $this->bo->check_repeating_events($datetime); - if($this->bo->cached_events[$GLOBALS['phpgw']->common->show_date($datetime,'Ymd')][0] == $event) + $check_date = $GLOBALS['phpgw']->common->show_date($datetime,'Ymd'); + if(is_array($this->bo->cached_events[$check_date][0]) && + $this->bo->cached_events[$check_date][0]['id'] == $event['id']) { $starttime = $this->bo->maketime($event['start']); $endtime = $this->bo->maketime($event['end']); @@ -616,6 +618,12 @@ $this->no_edit(); } + if(isset($GLOBALS['HTTP_GET_VARS']['readsess'])) + { + $params['readsess'] = $GLOBALS['HTTP_GET_VARS']['readsess']; + $params['cd'] = 0; + } + if($params != '' && @isset($params['readsess'])) { $event = $this->bo->restore_from_appsession;