1
0
Fork 0

Merge pull request #7263 from nupplaphil/bug/6917-php_warning

Add additional check for $links in Probe
This commit is contained in:
Hypolite Petovan 2019-06-13 11:50:45 -04:00 committed by GitHub
commit a74b069728
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'];