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:
commit
cb81b784e8
|
@ -461,7 +461,7 @@ class UrlHelper {
|
||||||
if (self::$fetch_last_error_code != 200) {
|
if (self::$fetch_last_error_code != 200) {
|
||||||
$error = error_get_last();
|
$error = error_get_last();
|
||||||
|
|
||||||
if ($error['message'] != $old_error['message']) {
|
if (($error['message'] ?? '') != ($old_error['message'] ?? '')) {
|
||||||
self::$fetch_last_error .= "; " . $error["message"];
|
self::$fetch_last_error .= "; " . $error["message"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue