Skip to content
Snippets Groups Projects
Unverified Commit 7d77edd1 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

amend logic flow to fix phpstan warning in previous

parent 3b717478
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment