1
0
mirror of synced 2024-11-21 21:06:07 +03:00

Remove tabs

This commit is contained in:
Ilyas Salikhov 2013-10-15 14:59:09 +04:00
parent 07321498fc
commit 5a203238b9

View File

@ -470,16 +470,16 @@ class RestApi
$this->parameters = array('apiKey' => $this->apiKey);
$errno = curl_errno($ch);
$error = curl_error($ch);
$error = curl_error($ch);
curl_close($ch);
if ($errno)
throw new Exception\CurlException($error, $errno);
throw new Exception\CurlException($error, $errno);
$result = json_decode($response, true);
if ($statusCode >= 400 || isset($result['success']) && $result['success'] === false) {
throw new Exception\ApiException($this->getErrorMessage($result), $statusCode);
throw new Exception\ApiException($this->getErrorMessage($result), $statusCode);
}
unset($result['success']);