Changeset 5714


Ignore:
Timestamp:
03/13/12 18:18:44 (12 years ago)
Author:
niltonneto
Message:

Ticket #2507 - Corrigido problema do id_contact no método getImagePicture().

Location:
sandbox/webservice/api/json-rpc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sandbox/webservice/api/json-rpc/Catalog.php

    r5712 r5714  
    8888                        // Global Catalog                        
    8989                        elseif($params['contactType'] == 2){ 
    90                                 $photo = $this->getUserLdapPhoto($params['contactID']); 
     90                                $photo = $this->getUserLdapPhoto(urldecode($params['contactID'])); 
    9191                                $contact[] = array( 
    9292                                                'contactID'             => $params['contactID'], 
     
    117117                                        $dn = ldap_get_dn($ds, $entry); 
    118118                                        return array( 
    119                                                 "contactID" => $dn, 
     119                                                "contactID" => urlencode($dn), 
    120120                                                "contactFirstName" => $givenName[0], 
    121121                                                "contactLastName"       => $sn[0], 
  • sandbox/webservice/api/json-rpc/Expresso.php

    r5707 r5714  
    1212        function __construct($id){               
    1313                $this->expressoVersion = substr($GLOBALS['phpgw_info']['server']['versions']['phpgwapi'],0,3); 
    14                 $this->result   = null; 
     14                $this->result   = array(); 
    1515                $this->error    = null;                                          
    1616                $this-> id              = $id; 
Note: See TracChangeset for help on using the changeset viewer.