mirror of
https://github.com/friendica/friendica
synced 2024-11-14 10:22:57 +00:00
Merge pull request #5082 from annando/federation-warning
Avoid warning when no valid data could be read
This commit is contained in:
commit
931e9182ff
1 changed files with 4 additions and 2 deletions
|
@ -1527,8 +1527,10 @@ class PortableContact
|
||||||
if ($serverdata) {
|
if ($serverdata) {
|
||||||
$servers = json_decode($serverdata);
|
$servers = json_decode($serverdata);
|
||||||
|
|
||||||
foreach ($servers->pods as $server) {
|
if (is_array($servers->pods)) {
|
||||||
Worker::add(PRIORITY_LOW, "DiscoverPoCo", "server", "https://".$server->host);
|
foreach ($servers->pods as $server) {
|
||||||
|
Worker::add(PRIORITY_LOW, "DiscoverPoCo", "server", "https://".$server->host);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue