From 927cb82b09d26081b9a8e38a745fee8d502668a7 Mon Sep 17 00:00:00 2001 From: skeeter Date: Sat, 6 Apr 2002 15:11:37 +0000 Subject: [PATCH] Fix for GNU Bug #100665. --- calendar/inc/class.uiicalendar.inc.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/calendar/inc/class.uiicalendar.inc.php b/calendar/inc/class.uiicalendar.inc.php index 200dec7963..10134b9e8e 100755 --- a/calendar/inc/class.uiicalendar.inc.php +++ b/calendar/inc/class.uiicalendar.inc.php @@ -37,7 +37,7 @@ function print_test($val,$title,$x_pre='') { -// echo 'VAL = '._debug_array($val)."
\n"; +// echo 'VAL = '._debug_array($val,False)."
\n"; if(is_array($val)) { @reset($val); @@ -89,7 +89,7 @@ echo "Start Time : ".$GLOBALS['phpgw']->common->show_date()."
\n"; @set_time_limit(0); - $icsfile=PHPGW_APP_INC.'/events.ics'; + $icsfile=PHPGW_APP_INC.'/events.vcs'; $fp=fopen($icsfile,'rt'); $contents = explode("\n",fread($fp, filesize($icsfile))); fclose($fp); @@ -107,7 +107,7 @@ $event = $vcalendar['event'][$i]; echo "
\nEVENT
\n"; -// echo 'TEST Debug : '._debug_array($event)."
\n"; +// echo 'TEST Debug : '._debug_array($event,False)."
\n"; $this->print_test($event['uid'],'UID','X-'); $this->print_test($event['valscale'],'Calscale','X-'); $this->print_test($event['description'],'Description','X-'); @@ -174,6 +174,11 @@ $GLOBALS['phpgw_info']['flags']['nonappfooter'] = True; $GLOBALS['phpgw']->common->phpgw_header(); + if(!@is_dir($GLOBALS['phpgw_info']['server']['temp_dir'])) + { + mkdir($GLOBALS['phpgw_info']['server']['temp_dir'],0700); + } + echo ''; if ($GLOBALS['HTTP_GET_VARS']['action'] == 'GetFile')