mirror of
https://github.com/friendica/friendica
synced 2024-11-18 21:43:40 +00:00
Merge pull request #7263 from nupplaphil/bug/6917-php_warning
Add additional check for $links in Probe
This commit is contained in:
commit
a74b069728
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ class Probe
|
|||
|
||||
$links = self::lrdd($webbie);
|
||||
Logger::log('webfingerDfrn: '.$webbie.':'.print_r($links, true), Logger::DATA);
|
||||
if (count($links)) {
|
||||
if (!empty($links) && is_array($links)) {
|
||||
foreach ($links as $link) {
|
||||
if ($link['@attributes']['rel'] === NAMESPACE_DFRN) {
|
||||
$profile_link = $link['@attributes']['href'];
|
||||
|
|
Loading…
Reference in a new issue