Skip to content

Commit

Permalink
Fixed error when downloading with curl
Browse files Browse the repository at this point in the history
  • Loading branch information
thelfensdrfer committed Oct 11, 2018
1 parent dc178a8 commit a5b171e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AutoUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -579,12 +579,12 @@ protected function _downloadCurl($url)
$update = curl_exec($curl);

$error = false;
if (curl_error($ch)) {
if (curl_error($curl)) {
$error = true;
$this->_log->addError(sprintf(
'Could not download update "%s" via curl: %s!',
$updateUrl,
curl_error($ch)
curl_error($curl)
));
}
curl_close($curl);
Expand Down

0 comments on commit a5b171e

Please sign in to comment.