https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2460cbc
)
Avaoid warning when no valid data could be read
author
Michael
<heluecht@pirati.ca>
Fri, 18 May 2018 16:07:55 +0000
(16:07 +0000)
committer
Michael
<heluecht@pirati.ca>
Fri, 18 May 2018 16:07:55 +0000
(16:07 +0000)
src/Protocol/PortableContact.php
patch
|
blob
|
history
diff --git
a/src/Protocol/PortableContact.php
b/src/Protocol/PortableContact.php
index
f824be4
..
35052fe
100644
(file)
--- a/
src/Protocol/PortableContact.php
+++ b/
src/Protocol/PortableContact.php
@@
-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);
+ }
}
}