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);