Changeset 1878
- Timestamp:
- 12/18/09 16:39:06 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jabberit_messenger/inc/class.ldap_im.inc.php
r1876 r1878 337 337 $search1 = @ldap_search($this->ldap, $searchRoot, $filter, $justthese, 0, $this->max_result + 1); 338 338 $entry1 = @ldap_get_entries( $this->ldap, $search1 ); 339 $result = $this->resultArray( $entry1, $this->ldap );339 $result = $this->resultArray( $entry1, $this->ldap, $this->ldap_org ); 340 340 341 341 if( count($return) > 0 ) … … 367 367 } 368 368 369 private final function resultArray($pArray, $pConn )369 private final function resultArray($pArray, $pConn, $pOrg = false) 370 370 { 371 371 $entry = $pArray; … … 384 384 $ou = explode("ou=",$ou[0]); 385 385 $ou = array_pop($ou); 386 $result[$j]['ou'] = strtoupper(substr($ou,0,strlen($ou)-1)); 386 $result[$j]['ou'] = strtoupper(substr($ou,0,strlen($ou)-1)); 387 if( $pOrg === "*" ) 388 $result[$j]['ouAll'] = "*"; 389 387 390 if( $entry[$i]['jpegphoto'][0] ) 388 391 {
Note: See TracChangeset
for help on using the changeset viewer.