diff options
| author | fox <fox@noreply.tt-rss.org> | 2021-12-01 10:52:12 +0300 |
|---|---|---|
| committer | fox <fox@noreply.tt-rss.org> | 2021-12-01 10:52:12 +0300 |
| commit | a72e24343bddbee4aa2b354aabd91b55e33cd71e (patch) | |
| tree | cd3134c15776e6cef62205c0e382bd2ed40d0de6 /classes/feedparser.php | |
| parent | df7b2e79849419fcc278c0549fdf10c094991558 (diff) | |
| parent | 72e21f89ce2465fafc08a92dc2d216b55f355f28 (diff) | |
Merge pull request 'Fixes for php 8.1 compatibility' (#56) from magicDave/tt-rss:php8.1-fixes into master
Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/56
Diffstat (limited to 'classes/feedparser.php')
| -rw-r--r-- | classes/feedparser.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/feedparser.php b/classes/feedparser.php index 6ce69cc89..3821c15d8 100644 --- a/classes/feedparser.php +++ b/classes/feedparser.php @@ -201,7 +201,7 @@ class FeedParser { // libxml may have invalid unicode data in error messages function error() : string { - return UConverter::transcode($this->error, 'UTF-8', 'UTF-8'); + return UConverter::transcode($this->error ?? '', 'UTF-8', 'UTF-8'); } /** @return array<string> - WARNING: may return invalid unicode data */ |