Merge pull request #3578 from annando/probe-warning
Avoid "Invalid argument" warning in probing.
This commit is contained in:
commit
c54b7e84ab
|
@ -827,11 +827,13 @@ class Probe {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_array($webfinger["aliases"])) {
|
||||||
foreach ($webfinger["aliases"] as $alias) {
|
foreach ($webfinger["aliases"] as $alias) {
|
||||||
if (substr($alias, 0, 5) == 'acct:') {
|
if (substr($alias, 0, 5) == 'acct:') {
|
||||||
$data["addr"] = substr($alias, 5);
|
$data["addr"] = substr($alias, 5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!isset($data["network"]) || ($hcard_url == "")) {
|
if (!isset($data["network"]) || ($hcard_url == "")) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue