Merge pull request #8751 from annando/notice
Fix notice "Undefined index: template in src/Network/Probe.php on line 598"
This commit is contained in:
commit
8e14836152
|
@ -594,7 +594,7 @@ class Probe
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($webfinger['links'] as $link) {
|
foreach ($webfinger['links'] as $link) {
|
||||||
if ($link['rel'] === ActivityNamespace::OSTATUSSUB) {
|
if (!empty($link['template']) && ($link['rel'] === ActivityNamespace::OSTATUSSUB)) {
|
||||||
$result['subscribe'] = $link['template'];
|
$result['subscribe'] = $link['template'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue