]> git.mxchange.org Git - friendica.git/commitdiff
Fix notice "Undefined index: href"
authorMichael <heluecht@pirati.ca>
Sat, 14 Dec 2019 05:49:53 +0000 (05:49 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 14 Dec 2019 05:49:53 +0000 (05:49 +0000)
src/Network/Probe.php

index 80fa641ed4884a276548715daa66cb32cd2ccf12..3f02ef01179fd13715bcd1cc9fcb8115b1dcca86 100644 (file)
@@ -1574,7 +1574,7 @@ class Probe
                                $attr[$attribute->name] = trim($attribute->value);
                        }
 
-                       if ($feed_url == "") {
+                       if (empty($feed_url) && !empty($attr['href'])) {
                                $feed_url = $attr["href"];
                        }
                }