https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41edbfd
)
Add additional check for $links in Probe
author
Philipp Holzer
<admin+github@philipp.info>
Thu, 13 Jun 2019 13:01:24 +0000
(15:01 +0200)
committer
Philipp Holzer
<admin+github@philipp.info>
Thu, 13 Jun 2019 13:01:24 +0000
(15:01 +0200)
see https://github.com/friendica/friendica/issues/6917#issuecomment-
501661530
src/Network/Probe.php
patch
|
blob
|
history
diff --git
a/src/Network/Probe.php
b/src/Network/Probe.php
index
00c38a4
..
a3fe3ca
100644
(file)
--- 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'];