Ignore:
Timestamp:
03/01/12 03:35:01 (12 years ago)
Author:
acoutinho
Message:

Ticket #2434 - Implementacao de compartilhamento de agendas (agendas usuario e agendas publicas)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/services/iCal.php

    r5528 r5592  
    511511                $objTimezone =  new DateTimeZone($schedulable['timezone']);   
    512512                 
    513                 if($startTime['params']['VALUE'] === 'DATE' && isset($params['calendar_timezone']) ) 
     513                if(isset($startTime['params']['VALUE']) &&  $startTime['params']['VALUE'] === 'DATE' && isset($params['calendar_timezone']) ) 
    514514                { 
    515515                    $schedulable['allDay'] = 1; 
     
    555555         
    556556 
    557             $schedulable['summary'] = mb_convert_encoding ( $component->getProperty( 'summary' , false , false ) , 'UTF-8' , 'UTF-8,ISO-8859-1'); 
     557            $schedulable['summary'] = mb_convert_encoding ( $component->getProperty( 'summary' , false , false ) , 'ISO-8859-1' , 'UTF-8,ISO-8859-1'); 
    558558 
    559559            /* Definindo Description */ 
    560560                if($desc = $component->getProperty( 'description' , false , false )) 
    561                     $schedulable['description'] = mb_convert_encoding (str_ireplace (array('\n','\t'), array("\n","\t"), $desc) ,'UTF-8' , 'UTF-8,ISO-8859-1'); 
     561                    $schedulable['description'] = mb_convert_encoding (str_ireplace (array('\n','\t'), array("\n","\t"), $desc) ,'ISO-8859-1' , 'UTF-8,ISO-8859-1'); 
    562562 
    563563             /* Definindo location */ 
    564564                if($location = $component->getProperty( 'location' , false , false )) 
    565                     $schedulable['location'] = mb_convert_encoding ( $location , 'UTF-8' , 'UTF-8,ISO-8859-1') ; 
     565                    $schedulable['location'] = mb_convert_encoding ( $location , 'ISO-8859-1' , 'UTF-8,ISO-8859-1') ; 
    566566 
    567567 
     
    701701       
    702702            /* Definindo TRANSP */ 
    703             if(($tranp = $component->getProperty( 'transp', false , true )) && strtoupper($tranp) == 'OPAQUE') 
     703            if(($tranp = $component->getProperty( 'transp', false , true )) && $tranp && strtoupper($tranp) == 'OPAQUE') 
    704704                $schedulable['transparent'] = 1; 
    705705 
Note: See TracChangeset for help on using the changeset viewer.