diff --git a/classes/urlhelper.php b/classes/urlhelper.php
index cdaa6cc87f13d55e00f8cf812f21b74744f25aef..8dcb94b731110a938a56c3ef9cad3d3b9d1f9807 100644
--- a/classes/urlhelper.php
+++ b/classes/urlhelper.php
@@ -587,20 +587,20 @@ class UrlHelper {
 				return false;
 			}
 
-			if (!$data) {
-				self::$fetch_last_error = 'Successful response, but no content was received.';
-				return false;
-			}
+			if ($data) {
+				$is_gzipped = RSSUtils::is_gzipped($data);
 
-			$is_gzipped = RSSUtils::is_gzipped($data);
+				if ($is_gzipped) {
+					$tmp = @gzdecode($data);
 
-			if ($is_gzipped && $data) {
-				$tmp = @gzdecode($data);
+					if ($tmp) $data = $tmp;
+				}
 
-				if ($tmp) $data = $tmp;
+				return $data;
+			} else {
+				self::$fetch_last_error = 'Successful response, but no content was received.';
+				return false;
 			}
-
-			return $data;
 		}
 	}