Skip to content

Commit 67f7c49

Browse files
committed
Merge pull request #13 from icemanpro/patch-1
Patch 1
2 parents c6a6e1e + b605844 commit 67f7c49

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Curl/Curl.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ public function post($url, $data = array())
6262
{
6363
$this->setopt(CURLOPT_URL, $url);
6464
$this->setopt(CURLOPT_POST, true);
65-
$data = http_build_query($data);
65+
if (is_array($data) || is_object($data))
66+
{
67+
$data = http_build_query($data);
68+
}
6669
$this->setopt(CURLOPT_POSTFIELDS, $data);
6770
$this->_exec();
6871
}

0 commit comments

Comments
 (0)