diff options
author | David Edler <[email protected]> | 2021-11-30 21:50:09 +0100 |
---|---|---|
committer | Chih-Hsuan Yen <[email protected]> | 2022-03-09 00:46:15 +0800 |
commit | de1e218a835979a2b9b561cd6d5934cdc436dd67 (patch) | |
tree | f2659b0783b1398d17a6bc2d2a3b4da1f324ecca /classes/pref/system.php | |
parent | a39557451604ba1ad4558f8283f1a13ca76ba5ba (diff) |
various fixes vor php 8.1 compatibility
Cherry-picked from https://git-gitea.tt-rss.org/fox/tt-rss/pulls/56,
while excluding changes in vendor/ (causes compatiblity issues with
PHP<8 [1]) and strftime-related ones (already re-applied in
https://git-gitea.tt-rss.org/fox/tt-rss/pulls/66).
[1] https://community.tt-rss.org/t/support-for-php-8-1/5089/9
Diffstat (limited to 'classes/pref/system.php')
-rw-r--r-- | classes/pref/system.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/pref/system.php b/classes/pref/system.php index 10f196b55..806291c72 100644 --- a/classes/pref/system.php +++ b/classes/pref/system.php @@ -138,7 +138,7 @@ class Pref_System extends Handler_Administrative { $sth->execute($errno_values); while ($line = $sth->fetch()) { - foreach ($line as $k => $v) { $line[$k] = htmlspecialchars($v); } + foreach ($line as $k => $v) { $line[$k] = htmlspecialchars($v ?? ''); } ?> <tr> <td class='errno'> |