diff options
| author | 2021-12-01 23:24:39 +0100 | |
|---|---|---|
| committer | 2021-12-01 23:24:39 +0100 | |
| commit | 28cff8a0df3af23f7acf01840da43c098c779313 (patch) | |
| tree | 491cd077f3fbad8fecd57c3e80880d39b8c577d0 /lib/lib_rss.php | |
| parent | b21fe199ed19fcc08fe3ece2d9ab553dcc0e73c9 (diff) | |
Fix some PHP 8.1 warnings (#4012)
* Fix some PHP 8.1 warnings
The proper fix will have to wait till be drop PHP7.
#fix https://github.com/FreshRSS/FreshRSS/issues/4010
* Another PHP8.1 fix
Diffstat (limited to 'lib/lib_rss.php')
| -rw-r--r-- | lib/lib_rss.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 4b2e2bc3d..6643dc757 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -165,7 +165,7 @@ function html_only_entity_decode($text) { get_html_translation_table(HTML_SPECIALCHARS, ENT_NOQUOTES, 'UTF-8') //Preserve XML entities )); } - return strtr($text, $htmlEntitiesOnly); + return $text == '' ? '' : strtr($text, $htmlEntitiesOnly); } function customSimplePie($attributes = array()) { |
