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:
66d4f1d
)
Check for existing protocols.inbound value in Protocol\PortableContact
author
Hypolite Petovan
<hypolite@mrpetovan.com>
Fri, 14 Jun 2019 10:25:44 +0000
(06:25 -0400)
committer
Hypolite Petovan
<hypolite@mrpetovan.com>
Fri, 14 Jun 2019 10:25:44 +0000
(06:25 -0400)
src/Protocol/PortableContact.php
patch
|
blob
|
history
diff --git
a/src/Protocol/PortableContact.php
b/src/Protocol/PortableContact.php
index
60bb844
..
def8f1b
100644
(file)
--- a/
src/Protocol/PortableContact.php
+++ b/
src/Protocol/PortableContact.php
@@
-749,7
+749,7
@@
class PortableContact
$friendica = false;
$gnusocial = false;
- if (is_array($nodeinfo['protocols']['inbound'])) {
+ if (
!empty($nodeinfo['protocols']['inbound']) &&
is_array($nodeinfo['protocols']['inbound'])) {
foreach ($nodeinfo['protocols']['inbound'] as $inbound) {
if ($inbound == 'diaspora') {
$diaspora = true;