8000 Fix error in _callApiCurl method · redaxeprogrammers/codebird-php@0684f3b · GitHub
[go: up one dir, main page]

Skip to content

Commit 0684f3b

Browse files
committed
Fix error in _callApiCurl method
1 parent 94984b3 commit 0684f3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/codebird.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,9 +1299,9 @@ protected function _callApiCurl($httpmethod, $method, $params = array(), $multip
12991299
$this->_validateSslCertificate($validation_result);
13001300

13011301
$httpstatus = curl_getinfo($ch, CURLINFO_HTTP_CODE);
1302-
$reply = $this->_parseApiReply($result);
1303-
$headers = $this->_parseApiReply($result, true);
1304-
$rate = $this->_getRateLimitInfo($headers);
1302+
list($headers, $reply) = $this->_parseApiHeaders($result);
1303+
$reply = $this->_parseApiReply($reply);
1304+
$rate = $this->_getRateLimitInfo($headers);
13051305

13061306
switch ($this->_return_format) {
13071307
case CODEBIRD_RETURNFORMAT_ARRAY:

0 commit comments

Comments
 (0)
0