Merge pull request 'Fix "array offset on value of type null" for $error and $old_error' (#16) from ltGuillaume/tt-rss:master into master

Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/16
This commit is contained in:
fox 2021-03-06 22:42:26 +03:00
commit cb81b784e8
1 changed files with 1 additions and 1 deletions

View File

@ -461,7 +461,7 @@ class UrlHelper {
if (self::$fetch_last_error_code != 200) {
$error = error_get_last();
if ($error['message'] != $old_error['message']) {
if (($error['message'] ?? '') != ($old_error['message'] ?? '')) {
self::$fetch_last_error .= "; " . $error["message"];
}