From a85aa24d56e0aa0217529aaad9829ec6e7a2bc2e Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Thu, 13 Jun 2019 15:01:24 +0200 Subject: [PATCH] Add additional check for $links in Probe see https://github.com/friendica/friendica/issues/6917#issuecomment-501661530 --- src/Network/Probe.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 00c38a4c12..a3fe3ca336 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -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'];