More fixes for php3 support.

This commit is contained in:
skeeter 2001-09-07 18:47:48 +00:00
parent ea0d74b4a6
commit 907dfb7e47
2 changed files with 3 additions and 3 deletions

View File

@ -521,7 +521,7 @@
} }
$event = $this->get_cached_event(); $event = $this->get_cached_event();
if(!@$event['participants'][$l_cal['owner']]) if(!@isset($event['participants'][$l_cal['owner']]))
{ {
$this->so->add_attribute('owner',$minparts); $this->so->add_attribute('owner',$minparts);
} }
@ -623,7 +623,7 @@
if(($event['owner'] == $this->owner) && ($this->check_perms(PHPGW_ACL_EDIT) == True)) 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) if($this->check_perms(PHPGW_ACL_PRIVATE) == True)
{ {

View File

@ -612,7 +612,7 @@
if(!$this->bo->can_user_edit($event)) 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(); $GLOBALS['phpgw']->common->phpgw_exit();
} }
if(@isset($GLOBALS['HTTP_POST_VARS']['edit_type']) && $GLOBALS['HTTP_POST_VARS']['edit_type'] == 'single') if(@isset($GLOBALS['HTTP_POST_VARS']['edit_type']) && $GLOBALS['HTTP_POST_VARS']['edit_type'] == 'single')