diff --git a/calendar/inc/class.socalendar_sql.inc.php b/calendar/inc/class.socalendar_sql.inc.php index b5e3c55006..ed425520c3 100755 --- a/calendar/inc/class.socalendar_sql.inc.php +++ b/calendar/inc/class.socalendar_sql.inc.php @@ -539,12 +539,10 @@ class socalendar_ extends socalendar__ $this->stream->query('DELETE FROM phpgw_cal_repeats WHERE cal_id='.$event['id'],__LINE__,__FILE__); } - if($this->debug) - { - echo ''."\n"; - } - + print_debug('Event Saved: ID #',$event['id']); + $this->stream->unlock(); + $GLOBALS['phpgw_info']['cal_new_event_id'] = $event['id']; return True; }