Changeset 948


Ignore:
Timestamp:
06/04/09 11:40:08 (15 years ago)
Author:
niltonneto
Message:

Ticket #505 - Corrigido erro quando contato está conectado com clienteIM (recurso junto no jid).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jabberit_messenger/inc/webservice.php

    r946 r948  
    141141        { 
    142142                $uid = substr($pJid, 0, strpos($pJid,"@")); 
    143          
     143                 
    144144                if( $this->jabberName == (substr($pJid, strpos($pJid, "@") + 1 ))) 
    145145                { 
     
    150150                                $filter = "(&(phpgwaccounttype=u)(uid=".$uid.")(!(phpgwaccountvisible=-1)))"; 
    151151                                $justthese = array("uid","jpegPhoto"); 
     152                                 
    152153                                $search = ldap_search($this->conn,$this->contextLdap,$filter,$justthese); 
    153154                                $entry1 = ldap_get_entries($this->conn,$search); 
     
    167168                } 
    168169                else 
    169                 { 
     170                {                                        
    170171                        $jabberName = substr($pJid, strpos($pJid, "@") + 1 ); 
    171172                         
    172173                        if( strpos($jabberName, "/") ) 
    173174                                $jabberName = substr($jabberName, 0, strpos($jabberName, "/")); 
    174                          
     175 
    175176                        $this->ldapConnectExternal($jabberName); 
    176177 
     
    228229        $obj = new webService(); 
    229230        $jid = $_REQUEST['javaPhoto']; 
     231        $jid = strpos($jid, "/") ? substr($jid, 0, strpos($jid, "/")) : $jid; 
    230232         
    231233        $photo = $obj->getPhotoLdap($jid); 
Note: See TracChangeset for help on using the changeset viewer.