Ignore:
Timestamp:
10/25/12 13:53:50 (12 years ago)
Author:
alexandrecorreia
Message:

Ticket #2507 - Melhorias dos resources REST, servidor e calendar.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/webservice/api/adapters/CatalogAdapter.php

    r6241 r7465  
    113113                // Force ldap close 
    114114                ldap_close($this->getLdapCatalog()->ds);                 
    115                 $result = array ('contacts' => $contacts); 
    116                 $this->setResult($result); 
    117                 return $this->getResponse(); 
     115                if( count($contacts) ) 
     116                { 
     117                        $result = array ('contacts' => $contacts); 
     118                        $this->setResult($result); 
     119                        return $this->getResponse(); 
     120                } 
     121                else 
     122                { 
     123                        Errors::runException("CATALOG_NO_RESULTS"); 
     124                } 
    118125        } 
    119126} 
Note: See TracChangeset for help on using the changeset viewer.