aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/connections.php2
-rw-r--r--include/oauth2.php4
2 files changed, 4 insertions, 2 deletions
diff --git a/include/connections.php b/include/connections.php
index 8f4f84e1a..0e9f25c8f 100644
--- a/include/connections.php
+++ b/include/connections.php
@@ -629,7 +629,7 @@ function get_vcard_array($vc,$id) {
'address' => $adr->getParts()
];
$last_entry = end($adrs);
- if($adrs[$last_entry]['address'])
+ if($last_entry && $adrs[$last_entry]['address'])
array_walk($adrs[$last_entry]['address'],'array_escape_tags');
}
}
diff --git a/include/oauth2.php b/include/oauth2.php
index a0d65a995..3a71a651d 100644
--- a/include/oauth2.php
+++ b/include/oauth2.php
@@ -1,8 +1,9 @@
<?php
+/*
$storage = new OAuth2\Storage\Pdo(\DBA::$dba->db);
$config = [
- 'use_openid_connect'] => true,
+ 'use_openid_connect' => true,
'issuer' => \Zotlabs\Lib\System::get_site_name()
];
@@ -19,3 +20,4 @@
]);
$oauth2_server->addStorage($keyStorage,'public_key');
+*/ \ No newline at end of file