From 907dfb7e47639143bdb9605dc3490f1a5e97ad07 Mon Sep 17 00:00:00 2001 From: skeeter Date: Fri, 7 Sep 2001 18:47:48 +0000 Subject: [PATCH] More fixes for php3 support. --- calendar/inc/class.bocalendar.inc.php | 4 ++-- calendar/inc/class.uicalendar.inc.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/calendar/inc/class.bocalendar.inc.php b/calendar/inc/class.bocalendar.inc.php index d7fdc97f69..3f954cf315 100755 --- a/calendar/inc/class.bocalendar.inc.php +++ b/calendar/inc/class.bocalendar.inc.php @@ -521,7 +521,7 @@ } $event = $this->get_cached_event(); - if(!@$event['participants'][$l_cal['owner']]) + if(!@isset($event['participants'][$l_cal['owner']])) { $this->so->add_attribute('owner',$minparts); } @@ -623,7 +623,7 @@ if(($event['owner'] == $this->owner) && ($this->check_perms(PHPGW_ACL_EDIT) == True)) { - if($event['public'] != True) + if($event['public'] == False || $event['public'] == 0) { if($this->check_perms(PHPGW_ACL_PRIVATE) == True) { diff --git a/calendar/inc/class.uicalendar.inc.php b/calendar/inc/class.uicalendar.inc.php index e6aa4ea195..97d42186b9 100755 --- a/calendar/inc/class.uicalendar.inc.php +++ b/calendar/inc/class.uicalendar.inc.php @@ -612,7 +612,7 @@ if(!$this->bo->can_user_edit($event)) { - Header('Location: '.$this->page('view','&cal_id='$cal_id)); + Header('Location: '.$this->page('view','&cal_id='.$cal_id)); $GLOBALS['phpgw']->common->phpgw_exit(); } if(@isset($GLOBALS['HTTP_POST_VARS']['edit_type']) && $GLOBALS['HTTP_POST_VARS']['edit_type'] == 'single')