Fix notice " Undefined index: template in src/Network/Probe.php on line 598"

pull/8751/head
Michael 2020-06-09 20:44:55 +00:00
rodzic 59bd6fd908
commit e485836a24
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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