From e485836a2498ec31aadfb10c782f4ae22d82cb1c Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 9 Jun 2020 20:44:55 +0000 Subject: [PATCH] Fix notice " Undefined index: template in src/Network/Probe.php on line 598" --- src/Network/Probe.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Network/Probe.php b/src/Network/Probe.php index ff364d12a..9655590dc 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -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']; } }