diff --git a/library/Requests/Transport/cURL.php b/library/Requests/Transport/cURL.php index a1921a52c..f76606df6 100644 --- a/library/Requests/Transport/cURL.php +++ b/library/Requests/Transport/cURL.php @@ -349,7 +349,7 @@ protected function setup_handle($url, $headers, $data, $options) { break; default: curl_setopt($this->handle, CURLOPT_CUSTOMREQUEST, $options['type']); - if (!empty($r['data'])) { + if (!empty($data)) { curl_setopt($this->handle, CURLOPT_POSTFIELDS, $data); } }