1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 08:35:55 +00:00

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

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"];
}