diff --git a/classes/urlhelper.php b/classes/urlhelper.php
index 637ad1a44b28539c2cc08034bbea70f1275930af..92e7f90df6d4af15527e447e595bd08ba51815c3 100644
--- a/classes/urlhelper.php
+++ b/classes/urlhelper.php
@@ -396,7 +396,7 @@ class UrlHelper {
 
 			if (curl_errno($ch) === 23 || curl_errno($ch) === 61) {
 				curl_setopt($ch, CURLOPT_ENCODING, 'none');
-				$contents = @curl_exec($ch);
+				$ret = @curl_exec($ch);
 			}
 
 			$headers_length = curl_getinfo($ch, CURLINFO_HEADER_SIZE);