From a5b171e079957b34010122af44097651fc7d4964 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Helfensdo=CC=88rfer?= Date: Thu, 11 Oct 2018 14:38:58 +0200 Subject: [PATCH] Fixed error when downloading with curl --- src/AutoUpdate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AutoUpdate.php b/src/AutoUpdate.php index 9fceef2..bb60ebf 100755 --- a/src/AutoUpdate.php +++ b/src/AutoUpdate.php @@ -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);