Ignore:
Timestamp:
12/18/09 15:40:47 (14 years ago)
Author:
alexandrecorreia
Message:

Ticket #808 - Busca implementada utilizando somente os grupos cadastrados.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jabberit_messenger/inc/class.contacts_im.inc.php

    r1864 r1875  
    127127        $uidType                = "uid"; 
    128128                $serversLdap    = unserialize(trim($_SESSION['phpgw_info']['jabberit_messenger']['groups_search'])); 
    129                  
     129 
    130130        if( $serversLdap ) 
    131131        { 
    132132                if( array_key_exists($this->serverLdap, $serversLdap) ) 
     133                { 
    133134                        $groups = unserialize($serversLdap[$this->serverLdap]); 
     135                } 
    134136 
    135137                if( count($groups) > 0 ) 
     
    188190                                $result[] = $this->ldap->getUsersLdapRoot("cn=*".$pName."*", $filter_uid); 
    189191        } 
    190          
     192                 
    191193        if( !$this->groupsLocked() ) 
    192194        { 
     
    219221                                                $result[] = $this->ldap->getUsersLdapCatalog("cn=*".$pName."*", $filter_uid_external, $key ); 
    220222                                                } 
     223                                                unset($array_uids_external); 
    221224                                                } 
    222225                                        } 
    223226                                }                                        
    224227                        } 
    225  
    226                         if( count( $array_uids_external ) == 0 ) 
    227                         $result[] = $this->ldap->getUsersLdapCatalog("cn=*".$pName."*"); 
     228                        else 
     229                        { 
     230                                $result[] = $this->ldap->getUsersLdapCatalog("cn=*".$pName."*"); 
     231                        } 
    228232        } 
    229233 
Note: See TracChangeset for help on using the changeset viewer.