diff options
author | Mario Vavti <mario@mariovavti.com> | 2022-10-26 17:56:04 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2022-10-26 17:56:04 +0200 |
commit | 9e95f189ed3d5b228b8133f04f66aca6de75b1ab (patch) | |
tree | 4e912a3ef58994e05e5b10f6f808bfe4c824366b /include/connections.php | |
parent | 221b31bcc6f16510c0f242e96ac696b2dd0eca58 (diff) | |
download | volse-hubzilla-9e95f189ed3d5b228b8133f04f66aca6de75b1ab.tar.gz volse-hubzilla-9e95f189ed3d5b228b8133f04f66aca6de75b1ab.tar.bz2 volse-hubzilla-9e95f189ed3d5b228b8133f04f66aca6de75b1ab.zip |
fix php warnings
Diffstat (limited to 'include/connections.php')
-rw-r--r-- | include/connections.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/connections.php b/include/connections.php index dcfcc3985..d861bc1b3 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 (strpos($xchan['xchan_addr'],'guest:') === 0 && strpos($abook['abook_xchan'],'.')){ + if ($xchan && strpos($xchan['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); |