Avoid warnings from probe

This commit is contained in:
Michael 2017-08-29 04:51:02 +00:00
parent 0c1c39b679
commit 4bc2076763

View file

@ -1139,6 +1139,7 @@ class Probe {
$data["addr"] = str_replace('acct:', '', $webfinger["subject"]); $data["addr"] = str_replace('acct:', '', $webfinger["subject"]);
} }
$pubkey = ""; $pubkey = "";
if (is_array($webfinger["links"])) {
foreach ($webfinger["links"] as $link) { foreach ($webfinger["links"] as $link) {
if (($link["rel"] == "http://webfinger.net/rel/profile-page") if (($link["rel"] == "http://webfinger.net/rel/profile-page")
&& ($link["type"] == "text/html") && ($link["type"] == "text/html")
@ -1175,6 +1176,7 @@ class Probe {
} }
} }
} }
}
if (isset($data["notify"]) && isset($data["pubkey"]) if (isset($data["notify"]) && isset($data["pubkey"])
&& isset($data["poll"]) && isset($data["poll"])