aboutsummaryrefslogtreecommitdiffstats
path: root/include/xchan.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-11-20 20:31:59 +0000
committerMario <mario@mariovavti.com>2022-11-20 20:31:59 +0000
commit41376ec2cda617549b717769f942019ebc2ba797 (patch)
tree1aabb382bc51bd3ad493ce4ef39bc0cd0febca10 /include/xchan.php
parentbf335ecaf36e628fc76b3fc84c4a73ab82f9e2a0 (diff)
downloadvolse-hubzilla-41376ec2cda617549b717769f942019ebc2ba797.tar.gz
volse-hubzilla-41376ec2cda617549b717769f942019ebc2ba797.tar.bz2
volse-hubzilla-41376ec2cda617549b717769f942019ebc2ba797.zip
fix issue in tag_deliver() and silence some more warnings
Diffstat (limited to 'include/xchan.php')
-rw-r--r--include/xchan.php6
1 files changed, 3 insertions, 3 deletions
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'];
}