Ignore:
Timestamp:
01/15/13 15:59:29 (11 years ago)
Author:
douglasz
Message:

Ticket #2166 - F9 não funciona quando o LDAP externo está fora.

File:
1 edited

Legend:

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

    r7655 r7756  
    346346        function quickSearchAll($params) 
    347347        { 
    348                  
    349348            $retorno_personal = $this->quickSearchPersonal($params); 
    350349            $retorno_global   = $this->quickSearchGlobal($params); 
    351350            //$retorno = $retorno_personal + $retorno_global; 
    352             $retorno = array_merge($retorno_personal, $retorno_global); 
    353                          
     351            if ($retorno_global){ 
     352                $retorno = array_merge($retorno_personal, $retorno_global); 
     353            }else{ 
     354                $retorno = $retorno_personal; 
     355            } 
     356 
    354357                        $retorno['type_catalog'] = "A"; 
    355358                        $retorno['search_for'] = $params['search_for']; 
     
    504507 
    505508                        $info_return['search_for'] = $params['search_for']; 
    506             return $info_return;  
     509            return $info_return; 
    507510        }  
    508511         
Note: See TracChangeset for help on using the changeset viewer.