mirror of
https://github.com/friendica/friendica
synced 2024-11-10 07:42:53 +00:00
Avaoid warning when no valid data could be read
This commit is contained in:
parent
2460cbc09e
commit
5d708fd9a9
1 changed files with 4 additions and 2 deletions
|
@ -1527,8 +1527,10 @@ class PortableContact
|
|||
if ($serverdata) {
|
||||
$servers = json_decode($serverdata);
|
||||
|
||||
foreach ($servers->pods as $server) {
|
||||
Worker::add(PRIORITY_LOW, "DiscoverPoCo", "server", "https://".$server->host);
|
||||
if (is_array($servers->pods)) {
|
||||
foreach ($servers->pods as $server) {
|
||||
Worker::add(PRIORITY_LOW, "DiscoverPoCo", "server", "https://".$server->host);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue