From: Michael Date: Tue, 9 Jun 2020 20:44:55 +0000 (+0000) Subject: Fix notice " Undefined index: template in src/Network/Probe.php on line 598" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e485836a2498ec31aadfb10c782f4ae22d82cb1c;p=friendica.git Fix notice " Undefined index: template in src/Network/Probe.php on line 598" --- diff --git a/src/Network/Probe.php b/src/Network/Probe.php index ff364d12a1..9655590dc9 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']; } }