Ignore:
Timestamp:
01/08/09 16:11:54 (15 years ago)
Author:
niltonneto
Message:

Resolve #390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/inc/class.bocalendar.inc.php

    r582 r583  
    867867                                $this->fix_update_time($l_start); 
    868868                                $this->fix_update_time($l_end); 
    869  
    870                                 if(!isset($l_cal['private'])) 
    871                                 { 
    872                                         $l_cal['private'] = 'public'; 
    873                                 } 
    874869                                if(!isset($l_cal['ex_participants'])) 
    875870                                { 
     
    882877                                } 
    883878 
    884                                 $is_public = (int)(isset($l_cal['public']) ? $l_cal['public'] : $l_cal['private'] == 'public'); 
     879                                $is_public = ($l_cal['type'] != 'private'); 
    885880                                $this->so->event_init(); 
    886881                                $this->add_attribute('uid',$l_cal['uid']); 
     882                                $this->add_attribute('type',$l_cal['type']); 
    887883                                if($l_cal['ex_participants']) { 
    888884                                        $this->add_attribute('ex_participants',$l_cal['ex_participants']); 
Note: See TracChangeset for help on using the changeset viewer.