Merge pull request #7204 from MrPetovan/bug/notices

Check for array index existence
This commit is contained in:
Michael Vogel 2019-05-29 07:04:46 +02:00 committed by GitHub
commit 64f51d337f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -665,7 +665,7 @@ class PortableContact
$nodeinfo2_url = '';
foreach ($nodeinfo['links'] as $link) {
if (!is_array($link) || empty($link['rel'])) {
if (!is_array($link) || empty($link['rel']) || empty($link['href'])) {
Logger::log('Invalid nodeinfo format for ' . $server_url, Logger::DEBUG);
continue;
}