Ignore:
Timestamp:
09/20/10 18:23:03 (14 years ago)
Author:
alexandrecorreia
Message:

Ticket #1316 - Correcoes e melhorias na busca dos contatos para o Modulo IM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/jabberit_messenger/jmessenger/inc/class.ContactsIm.inc.php

    r3263 r3266  
    121121        $uidType                = "uid"; 
    122122                $serversLdap    = unserialize( trim($_SESSION['phpgw_info']['jabberit_messenger']['groups_search']) ); 
    123                  
    124123 
    125124                if( $serversLdap ) 
     
    168167                else 
    169168                { 
    170                 // Consulta Banco 
    171                 $array_uids = $this->db->get_accounts_acl(); 
    172                 $uidType = "uidnumber"; 
     169                $result[] = $this->ldap->getUsersLdapRoot("cn=*".$pName."*"); 
     170                
     171                foreach( $result as $key => $value ) 
     172                { 
     173                                $array_uids = array_merge($array_uids, $result[$key]); 
     174                } 
     175                                 
     176                        if( count($array_uids) >  $this->ldap->getMaxResults() ) 
     177                        { 
     178                                return "manyresults"; 
     179                        } 
    173180                } 
    174181 
Note: See TracChangeset for help on using the changeset viewer.