projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35dabae
)
Allows to use arrays via the REST API
author
Kevin Levie
<kevin@levity.nl>
Fri, 14 Aug 2015 15:04:35 +0000
(17:04 +0200)
committer
Kevin Levie
<kevin@levity.nl>
Fri, 14 Aug 2015 15:04:35 +0000
(17:04 +0200)
api/class.api.php
patch
|
blob
|
blame
|
history
diff --git
a/api/class.api.php
b/api/class.api.php
index 7a5f72cdec04c95a304e4a94ea056d892d2cf0ee..177da3eaff8cbbbf8dccc2e1ee453df6d1699bc4 100644
(file)
--- a/
api/class.api.php
+++ b/
api/class.api.php
@@
-177,9
+177,7
@@
class civicrm_api3 {
public function remoteCall($entity, $action, $params = array()) {
$fields = "key={$this->key}&api_key={$this->api_key}";
$query = $this->uri . "&entity=$entity&action=$action";
- foreach ($params as $k => $v) {
- $fields .= "&$k=" . urlencode($v);
- }
+ $fields .= '&' . http_build_query($params);
if (function_exists('curl_init')) {
// To facilitate debugging without leaking info, entity & action
// are GET, other data is POST.