diff --git a/calendar/inc/class.uicalendar.inc.php b/calendar/inc/class.uicalendar.inc.php index 52cced5cf1..804f0ca572 100755 --- a/calendar/inc/class.uicalendar.inc.php +++ b/calendar/inc/class.uicalendar.inc.php @@ -146,6 +146,13 @@ $GLOBALS['phpgw']->jscalendar = CreateObject('phpgwapi.jscalendar'); } $this->jscal = &$GLOBALS['phpgw']->jscalendar; + + if(!isset($this->bo->prefs['calendar']['interval'])) + { + $this->bo->prefs['calendar']['interval'] = 30; + $GLOBALS['phpgw']->preferences->add('calendar','interval',30); + $GLOBALS['phpgw']->preferences->save_repository(); + } } /* Public functions */ @@ -751,6 +758,10 @@ echo '
'.lang('Sorry, this event does not exist').'.'.'
'."\n"; $GLOBALS['phpgw']->common->phpgw_exit(True); } + if(isset($event['description'])) + { + $event['description'] = str_replace(array("\n","\r"),array('
',''),$event['description']); + } $this->bo->repeating_events = Array(); $this->bo->cached_events = Array(); @@ -3752,12 +3763,6 @@ return; } uasort($participants,'strnatcasecmp'); // sort them after their fullname - if(!isset($this->bo->prefs['calendar']['interval'])) - { - $this->bo->prefs['calendar']['interval'] = 15; - $GLOBALS['phpgw']->preferences->add('calendar','interval',15); - $GLOBALS['phpgw']->preferences->save_repository(); - } $increment = $this->bo->prefs['calendar']['interval']; $interval = (int)(60 / $increment); $colspan = $this->bo->prefs['calendar']['workdayends'] - $this->bo->prefs['calendar']['workdaystarts'];