Changeset 114


Ignore:
Timestamp:
11/23/07 14:47:03 (16 years ago)
Author:
niltonneto
Message:

Otimizado filtro ldap para deixar a busca de contatos mais rápida.

File:
1 edited

Legend:

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

    r108 r114  
    4949                        if (($field != 'null') && ($ID != 'null')) 
    5050                        { 
    51                                 $filter="(&(|(phpgwAccountType=u)(phpgwAccountType=l))(|(cn=*$search_for*)(sn=*$search_for*)(mail=$search_for*)))"; 
     51                                $filter="(&(|(phpgwAccountType=u)(phpgwAccountType=l))(|(cn=*$search_for*)(mail=$search_for*)))"; 
    5252                                $justthese = array("cn", "mail", "telephoneNumber", "mobile", "phpgwAccountVisible", "uid"); 
    5353                        } 
    5454                        else 
    5555                        { 
    56                                 $filter="(&(phpgwAccountType=u)(|(cn=*$search_for*)(sn=*$search_for*)(mail=$search_for*)))"; 
     56                                $filter="(& (phpgwAccountType=u)(cn=*$search_for*) )"; 
    5757                                $justthese = array("cn", "mail", "telephoneNumber", "mobile", "phpgwAccountVisible", "jpegPhoto", "uid"); 
    5858                        } 
Note: See TracChangeset for help on using the changeset viewer.