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
master
fox 4 years ago
commit cb81b784e8

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

Loading…
Cancel
Save