Ignore:
Timestamp:
11/11/11 16:42:49 (12 years ago)
Author:
wmerlotto
Message:

Ticket #2305 - Enviando alteracoes, desenvolvidas internamente na Prognus. Ultimas sincronizacoes...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.ldap_functions.inc.php

    r5134 r5172  
    316316            //$retorno = $retorno_personal + $retorno_global; 
    317317            $retorno = array_merge($retorno_personal, $retorno_global); 
    318             $retorno['search_for'] = $params['search_for']; 
     318                         
    319319                        $retorno['type_catalog'] = "A"; 
     320                        $retorno['search_for'] = $params['search_for']; 
    320321            return $retorno; 
    321322        } 
     
    336337            $DBService = ServiceLocator::getService('db'); 
    337338            $results   = $DBService->search_contacts($params['search_for']); 
     339                        $DBService = ServiceLocator::getService('db'); 
     340            $results2   = $DBService->search_groups($params['search_for']); 
     341            $results   = array_merge($results, $results2); 
    338342             
    339343            if(!$all) 
    340344                $results['type_catalog'] = "P"; 
    341             $results['search_for'] = $params['search_for']; 
    342345                         
    343346                        foreach($results as $i=>$value) 
    344347                                $results[$i]['type_contact'] = "P"; 
    345348                         
     349                        $results['search_for'] = $params['search_for']; 
    346350                        return $results; 
    347351        }  
     
    444448                $info_return['type_catalog'] = "G"; 
    445449             
    446             $info_return['search_for'] = $params['search_for']; 
    447450                        $info_return['extra_ldap_fields'] = $campos_extras;  
    448451                         
    449452                        foreach($info_return as $i=>$value) 
    450453                                $info_return[$i]['type_contact'] = "G"; 
     454                                 
     455                        $info_return['search_for'] = $params['search_for']; 
    451456            return $info_return; 
    452457        }  
Note: See TracChangeset for help on using the changeset viewer.