mirror of
https://github.com/friendica/friendica
synced 2024-11-10 09:02:53 +00:00
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 = '';
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue