aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2022-11-02 16:52:42 +0100
committerMario Vavti <mario@mariovavti.com>2022-11-02 16:52:42 +0100
commitf4d39bd3c86feebd21cfbfe61b7da5d32421113d (patch)
treeaa73e73b3c4094a33fc93856e32eb1a489215281 /include
parent1cf659033b376026aecaec7951c743f78c2b0511 (diff)
downloadvolse-hubzilla-f4d39bd3c86feebd21cfbfe61b7da5d32421113d.tar.gz
volse-hubzilla-f4d39bd3c86feebd21cfbfe61b7da5d32421113d.tar.bz2
volse-hubzilla-f4d39bd3c86feebd21cfbfe61b7da5d32421113d.zip
fix more php warnings
Diffstat (limited to 'include')
-rw-r--r--include/connections.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/connections.php b/include/connections.php
index 936fc1edd..2a186192d 100644
--- a/include/connections.php
+++ b/include/connections.php
@@ -384,7 +384,7 @@ function contact_remove($channel_id, $abook_id) {
dbesc($abook['abook_xchan'])
);
- if ($xchan && strpos($xchan['xchan_addr'],'guest:') === 0 && strpos($abook['abook_xchan'],'.')){
+ if ($xchan && strpos($xchan[0]['xchan_addr'],'guest:') === 0 && strpos($abook['abook_xchan'],'.')){
$atoken_guid = substr($abook['abook_xchan'],strrpos($abook['abook_xchan'],'.') + 1);
if ($atoken_guid) {
atoken_delete_and_sync($channel_id,$atoken_guid);