mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-28 11:09:26 +00:00
Remove negation
This commit is contained in:
+3
-3
@@ -336,12 +336,12 @@ class Curl
|
||||
public function exec($ch = null)
|
||||
{
|
||||
$this->responseCookies = array();
|
||||
if (!($ch === null)) {
|
||||
$this->rawResponse = curl_multi_getcontent($ch);
|
||||
} else {
|
||||
if ($ch === null) {
|
||||
$this->call($this->beforeSendFunction);
|
||||
$this->rawResponse = curl_exec($this->curl);
|
||||
$this->curlErrorCode = curl_errno($this->curl);
|
||||
} else {
|
||||
$this->rawResponse = curl_multi_getcontent($ch);
|
||||
}
|
||||
$this->curlErrorMessage = curl_error($this->curl);
|
||||
$this->curlError = !($this->curlErrorCode === 0);
|
||||
|
||||
Reference in New Issue
Block a user