Provide values for all arguments in http_build_query
Without that http_build_query depend on system settings and may fail (drupal 6 in default config)
This commit is contained in:
parent
2098ad3bf2
commit
e09fc4a58f
@ -61,7 +61,7 @@ class Client
|
|||||||
$path = $this->url . $path;
|
$path = $this->url . $path;
|
||||||
|
|
||||||
if (self::METHOD_GET === $method && sizeof($parameters)) {
|
if (self::METHOD_GET === $method && sizeof($parameters)) {
|
||||||
$path .= '?' . http_build_query($parameters);
|
$path .= '?' . http_build_query($parameters, '', '&');
|
||||||
}
|
}
|
||||||
|
|
||||||
$ch = curl_init();
|
$ch = curl_init();
|
||||||
|
Loading…
Reference in New Issue
Block a user