From 41376ec2cda617549b717769f942019ebc2ba797 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 20 Nov 2022 20:31:59 +0000 Subject: fix issue in tag_deliver() and silence some more warnings --- include/xchan.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/xchan.php') diff --git a/include/xchan.php b/include/xchan.php index a32064303..4a2d389c0 100644 --- a/include/xchan.php +++ b/include/xchan.php @@ -148,15 +148,15 @@ function xchan_store($arr) { function xchan_fetch($arr) { $key = ''; - if($arr['hash']) { + if(isset($arr['hash']) && $arr['hash']) { $key = 'xchan_hash'; $v = $arr['hash']; } - elseif($arr['guid']) { + elseif(isset($arr['guid']) && $arr['guid']) { $key = 'xchan_guid'; $v = $arr['guid']; } - elseif($arr['address']) { + elseif(isset($arr['address']) && $arr['address']) { $key = 'xchan_addr'; $v = $arr['address']; } -- cgit v1.2.3