Ignore:
Timestamp:
05/22/12 16:36:37 (12 years ago)
Author:
angelo
Message:

Ticket #2765 - Aviso de ferias de destinatarios na criacao de mensagens conforme filtro fora de escritorio

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.4.1-2/expressoMail1_2/inc/class.ldap_functions.inc.php

    r6257 r6272  
    461461                $info          = ldap_get_entries($this->ds, $sr); 
    462462                $info_return   = $info; 
     463     
    463464                //if($campos_extras != '') 
    464465                //array_push($info_return, $campos_extras); 
     
    496497                                 
    497498                        $info_return['search_for'] = $params['search_for']; 
    498             return $info_return; 
     499                         
     500                         
     501            return $this->toISO8859($info_return); 
    499502        }  
    500503         
     504        /*Converte um parametro de UTF-8 para ISO8859*/ 
     505        function toISO8859($data) 
     506        { 
     507                if(!is_array($data)) 
     508                  return mb_convert_encoding( $data , 'ISO-8859-1' , 'UTF-8 , ISO-8859-1' ); 
     509 
     510                $return = array(); 
     511 
     512                foreach ($data as $i => $v) 
     513                  $return[$this->toISO8859($i)] = $this->toISO8859($v); 
     514 
     515                return $return; 
     516        } 
     517                 
     518 
    501519        function make_quicksearch_card($info, $cn) 
    502520        { 
Note: See TracChangeset for help on using the changeset viewer.