This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Curl | |
{ | |
/** | |
* cURL request method | |
* | |
* @var string | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Curl.php b/Curl.php | |
index 651a39b..1bc1ed2 100644 | |
--- a/Curl.php | |
+++ b/Curl.php | |
@@ -365,17 +365,17 @@ class Curl | |
switch ($method) { | |
case 'GET' : | |
// Append GET params to URL | |
- $this->_url .= '?' . http_build_query($this->_params); | |
+ $this->_url .= http_build_query($this->_params) ? '?' . http_build_query($this->_params) : ''; |