Changeset 7465 for sandbox/webservice/api/adapters/CatalogAdapter.php
- Timestamp:
- 10/25/12 13:53:50 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/webservice/api/adapters/CatalogAdapter.php
r6241 r7465 113 113 // Force ldap close 114 114 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 } 118 125 } 119 126 }
Note: See TracChangeset
for help on using the changeset viewer.