1
0
mirror of synced 2024-11-24 22:36:06 +03:00

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:
Sergey Linnik 2015-07-30 13:47:15 +03:00
parent 2098ad3bf2
commit e09fc4a58f

View File

@ -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();