- Timestamp:
- 06/16/09 10:00:28 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jabberit_messenger/inc/class.contacts_im.inc.php
r988 r991 69 69 // Hosts Jabber 70 70 $hostsJabber = unserialize($_SESSION['phpgw_info']['jabberit_messenger']['map_org_realm_jabberit']); 71 72 foreach($hostsJabber as $conf )73 if( array_search("*", $conf) )74 $hostDefault = $conf['jabberName'];75 71 76 72 if( is_array($users) ) … … 82 78 foreach($hostsJabber as $itens) 83 79 { 84 if( trim($users[$i]['ou']) === trim($itens['org']) )85 $users[$i]['jid'] = $users[$i]['jid']."@".$itens['jabberName'];80 if( trim($users[$i]['ou']) === trim($itens['org']) && strpos($users[$i]['jid'],"@") === false) 81 $users[$i]['jid'] = $users[$i]['jid']."@".$itens['jabberName']; 86 82 else 87 83 { 88 if( $users[$i]['ou'] === $ou_User ) 89 if(strpos($users[$i]['jid'],"@") === false) 84 if(strpos($users[$i]['jid'],"@") === false) 90 85 $users[$i]['jid'] = $users[$i]['jid']."@".$this->serverJabber; 91 else92 if(strpos($users[$i]['jid'],"@") === false)93 $users[$i]['jid'] = $users[$i]['jid']."@".$hostDefault;94 86 } 95 87 }
Note: See TracChangeset
for help on using the changeset viewer.