Merge pull request #7204 from MrPetovan/bug/notices
Check for array index existence
This commit is contained in:
commit
64f51d337f
1 changed files with 1 additions and 1 deletions
|
@ -665,7 +665,7 @@ class PortableContact
|
||||||
$nodeinfo2_url = '';
|
$nodeinfo2_url = '';
|
||||||
|
|
||||||
foreach ($nodeinfo['links'] as $link) {
|
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);
|
Logger::log('Invalid nodeinfo format for ' . $server_url, Logger::DEBUG);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue