mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-14 12:31:00 +02:00
amend logic flow to fix phpstan warning in previous
This commit is contained in:
parent
3b7174788d
commit
7d77edd1fb
@ -587,20 +587,20 @@ class UrlHelper {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!$data) {
|
||||
if ($data) {
|
||||
$is_gzipped = RSSUtils::is_gzipped($data);
|
||||
|
||||
if ($is_gzipped) {
|
||||
$tmp = @gzdecode($data);
|
||||
|
||||
if ($tmp) $data = $tmp;
|
||||
}
|
||||
|
||||
return $data;
|
||||
} else {
|
||||
self::$fetch_last_error = 'Successful response, but no content was received.';
|
||||
return false;
|
||||
}
|
||||
|
||||
$is_gzipped = RSSUtils::is_gzipped($data);
|
||||
|
||||
if ($is_gzipped && $data) {
|
||||
$tmp = @gzdecode($data);
|
||||
|
||||
if ($tmp) $data = $tmp;
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user