aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2020-07-22 16:20:36 -0700
committerzotlabs <mike@macgirvin.com>2020-07-22 16:20:36 -0700
commit13ff9a897da05fbd4d82f9bfa758e6f821b833b3 (patch)
tree9fb1f038754f90aadd987b2d622efc3373b129f5 /include/network.php
parent29c5a65e8f773b2acd63b4f378a749bdb686bb9a (diff)
downloadvolse-hubzilla-13ff9a897da05fbd4d82f9bfa758e6f821b833b3.tar.gz
volse-hubzilla-13ff9a897da05fbd4d82f9bfa758e6f821b833b3.tar.bz2
volse-hubzilla-13ff9a897da05fbd4d82f9bfa758e6f821b833b3.zip
foreach warning
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/network.php b/include/network.php
index aada36fba..d9d534cd7 100644
--- a/include/network.php
+++ b/include/network.php
@@ -1101,7 +1101,7 @@ function discover_by_webbie($webbie, $protocol = '') {
$network = null;
$x = webfinger_rfc7033($webbie, true);
- if($x && array_key_exists('links',$x) && $x['links']) {
+ if($x && array_key_exists('links',$x) && is_array($x['links'])) {
foreach($x['links'] as $link) {
if(array_key_exists('rel',$link)) {