1
0
Fork 0

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:
Hypolite Petovan 2020-06-10 00:10:32 -04:00 committed by GitHub
commit 8e14836152
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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