]> git.mxchange.org Git - friendica.git/commitdiff
Fix notice " Undefined index: template in src/Network/Probe.php on line 598"
authorMichael <heluecht@pirati.ca>
Tue, 9 Jun 2020 20:44:55 +0000 (20:44 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 9 Jun 2020 20:44:55 +0000 (20:44 +0000)
src/Network/Probe.php

index ff364d12a17935de455c1253c35251008ee6b19a..9655590dc9238165527b0ed02b15abab13c82e0e 100644 (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'];
                        }
                }