From: Michael Date: Sat, 14 Dec 2019 05:49:53 +0000 (+0000) Subject: Fix notice "Undefined index: href" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b2d17abc7b481321bcac0b6f995a6fc3703c99f3;p=friendica.git Fix notice "Undefined index: href" --- diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 80fa641ed4..3f02ef0117 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -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"]; } }