- Timestamp:
- 09/17/10 14:39:10 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/jabberit_messenger/jmessenger/inc/class.ContactsIm.inc.php
r3260 r3263 54 54 $users = $this->getUsersIm($param['name']); 55 55 56 if ( !is_array($users) )57 return "<error></error>";58 59 56 if( count($users) == 0 ) 60 57 return "<empty></empty>"; 61 58 62 if( count($users) > $this->ldap->getMaxResults())59 if( $users === "manyresults" ) 63 60 { 64 61 if( isset($_SESSION['phpgw_info']['jabberit_messenger']['photo']) ) … … 119 116 { 120 117 $array_uids = array(); 118 $countUids = 0; 121 119 $members = array(); 122 120 $result = array(); 123 121 $uidType = "uid"; 124 122 $serversLdap = unserialize( trim($_SESSION['phpgw_info']['jabberit_messenger']['groups_search']) ); 123 125 124 126 125 if( $serversLdap ) … … 144 143 { 145 144 $result[$key] = $this->ldap->getUsersLdapRoot("cn=*".$pName."*"); 145 $countUids += count($result[$key]); 146 146 } 147 147 else 148 148 { 149 149 if( !$this->groupsLocked() ) 150 { 150 151 $result[$key] = $this->ldap->getUsersLdapCatalog("cn=*".$pName."*", $key ); 151 } 152 } 153 152 $countUids += count($result[$key]); 153 } 154 } 155 } 156 157 if( $countUids > $this->ldap->getMaxResults() ) 158 { 159 return "manyresults"; 160 } 161 154 162 $_RESULT = $this->ldap->getMembers($result, $filters); 155 163 156 164 foreach( $_RESULT as $key => $value ) 157 $array_uids = array_merge($array_uids, $_RESULT[$key]); 165 $array_uids = array_merge($array_uids, $_RESULT[$key]); 166 158 167 } 159 168 else
Note: See TracChangeset
for help on using the changeset viewer.