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