Changeset 8010


Ignore:
Timestamp:
03/13/13 16:02:48 (7 years ago)
Author:
douglas
Message:

Ticket #3378 - Correcao BUG edicao de eventos compartilhados com repeticao

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/prototype/modules/calendar/schedules.php

    r8006 r8010  
    116116  
    117117        $signedCalendars = array();  
    118         foreach($mySig as $v)  
    119         {  
    120             $tmp = Controller::find(array('concept' => 'calendarToPermission') , array('acl' ,'owner') , array('filter' => array( 'AND' ,array( '=' , 'calendar' , $v['calendar'] ) , array( '=' , 'user' , Config::me('uidNumber')  ) )));  
    121             $signedCalendars[$v['calendar']] = $tmp[0];  
    122         }  
     118        if(is_array($mySig))  
     119            foreach($mySig as $v)  
     120            {  
     121                $tmp = Controller::find(array('concept' => 'calendarToPermission') , array('acl' ,'owner') , array('filter' => array( 'AND' ,array( '=' , 'calendar' , $v['calendar'] ) , array( '=' , 'user' , Config::me('uidNumber')  ) )));  
     122                $signedCalendars[$v['calendar']] = $tmp[0];  
     123            }  
    123124  
    124125        $date = new DateTime('now', new DateTimeZone('UTC')); 
Note: See TracChangeset for help on using the changeset viewer.