From e09fc4a58f7031db57a0d1c5e0077ec80200f540 Mon Sep 17 00:00:00 2001 From: Sergey Linnik Date: Thu, 30 Jul 2015 13:47:15 +0300 Subject: [PATCH] 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) --- lib/RetailCrm/Http/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/RetailCrm/Http/Client.php b/lib/RetailCrm/Http/Client.php index a3374dc..69ce1fb 100644 --- a/lib/RetailCrm/Http/Client.php +++ b/lib/RetailCrm/Http/Client.php @@ -61,7 +61,7 @@ class Client $path = $this->url . $path; if (self::METHOD_GET === $method && sizeof($parameters)) { - $path .= '?' . http_build_query($parameters); + $path .= '?' . http_build_query($parameters, '', '&'); } $ch = curl_init();