Add additional check for $links in Probe
see https://github.com/friendica/friendica/issues/6917#issuecomment-501661530
This commit is contained in:
parent
41edbfd24a
commit
a85aa24d56
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ class Probe
|
||||||
|
|
||||||
$links = self::lrdd($webbie);
|
$links = self::lrdd($webbie);
|
||||||
Logger::log('webfingerDfrn: '.$webbie.':'.print_r($links, true), Logger::DATA);
|
Logger::log('webfingerDfrn: '.$webbie.':'.print_r($links, true), Logger::DATA);
|
||||||
if (count($links)) {
|
if (!empty($links) && is_array($links)) {
|
||||||
foreach ($links as $link) {
|
foreach ($links as $link) {
|
||||||
if ($link['@attributes']['rel'] === NAMESPACE_DFRN) {
|
if ($link['@attributes']['rel'] === NAMESPACE_DFRN) {
|
||||||
$profile_link = $link['@attributes']['href'];
|
$profile_link = $link['@attributes']['href'];
|
||||||
|
|
Loading…
Reference in a new issue