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')