sforkowany z mirror/friendica
Merge pull request #3578 from annando/probe-warning
Avoid "Invalid argument" warning in probing.2022.09-rc
commit
c54b7e84ab
|
@ -827,9 +827,11 @@ class Probe {
|
|||
}
|
||||
}
|
||||
|
||||
foreach ($webfinger["aliases"] as $alias) {
|
||||
if (substr($alias, 0, 5) == 'acct:') {
|
||||
$data["addr"] = substr($alias, 5);
|
||||
if (is_array($webfinger["aliases"])) {
|
||||
foreach ($webfinger["aliases"] as $alias) {
|
||||
if (substr($alias, 0, 5) == 'acct:') {
|
||||
$data["addr"] = substr($alias, 5);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue