mirror of
https://github.com/friendica/friendica
synced 2024-12-23 08:00:16 +00:00
Merge pull request #3578 from annando/probe-warning
Avoid "Invalid argument" warning in probing.
This commit is contained in:
commit
c54b7e84ab
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue