diff --git a/calendar/inc/class.bocalendar.inc.php b/calendar/inc/class.bocalendar.inc.php index 43ec1e1bfb..6e3081f6ed 100755 --- a/calendar/inc/class.bocalendar.inc.php +++ b/calendar/inc/class.bocalendar.inc.php @@ -507,6 +507,10 @@ $l_recur_enddate = (@isset($params['recur_enddate']) && $params['recur_enddate']?$params['recur_enddate']:$GLOBALS['HTTP_POST_VARS']['recur_enddate']); $send_to_ui = True; + if($this->debug) + { + $send_to_ui = True; + } if($p_cal || $p_participants || $p_start || $p_end || $p_recur_enddata) { $send_to_ui = False; @@ -662,6 +666,10 @@ } $event = $this->get_cached_event(); + if(!is_int($minparts)) + { + $minparts = $this->owner; + } if(!@isset($event['participants'][$l_cal['owner']])) { $this->so->add_attribute('owner',$minparts); @@ -677,6 +685,10 @@ $event['description'] = $GLOBALS['phpgw']->db->db_addslashes($event['description']); $this->store_to_appsession($event); $datetime_check = $this->validate_update($event); + if($this->debug) + { + echo ''."\n"; + } if($datetime_check) { ExecMethod('calendar.uicalendar.edit', @@ -1948,7 +1960,7 @@ $new_event_datetime = $this->maketime($new_event['start']) - $this->datetime->tz_offset; } - while(list($userid,$statusid) = each($participants)) + while($participants && list($userid,$statusid) = each($participants)) { if((intval($userid) != $GLOBALS['phpgw_info']['user']['account_id']) && ( diff --git a/calendar/inc/class.uicalendar.inc.php b/calendar/inc/class.uicalendar.inc.php index 285d631c74..3a14af55cb 100755 --- a/calendar/inc/class.uicalendar.inc.php +++ b/calendar/inc/class.uicalendar.inc.php @@ -696,6 +696,12 @@ { $this->no_edit(); } + + if($this->debug) + { + echo ''."\n"; + echo ''."\n"; + } if(isset($GLOBALS['HTTP_GET_VARS']['readsess'])) { @@ -703,13 +709,18 @@ $params['cd'] = 0; } - if($params != '' && @isset($params['readsess'])) + if($this->debug) + { + echo ''."\n"; + echo ''."\n"; + } + + if($params != '' && @is_array($params) && @isset($params['readsess'])) { - $event = $this->bo->restore_from_appsession; $can_edit = True; $this->edit_form( Array( - 'event' => $event, + 'event' => $this->bo->restore_from_appsession(), 'cd' => $params['cd'] ) ); @@ -3110,7 +3121,7 @@ . ''."\n" . ($GLOBALS['HTTP_GET_VARS']['cal_id'] && $event['id'] == 0?''."\n": (@isset($event['reference'])?''."\n":'')), - 'errormsg' => ($params['cd']?$GLOBALS['phpgw']->common->check_code($params['cd']):'') + 'errormsg' => ($param['cd']?$GLOBALS['phpgw']->common->check_code($param['cd']):'') ); $p->set_var($vars);