aboutsummaryrefslogtreecommitdiffstats
path: root/include/zid.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-10-12 12:15:30 +0000
committerMario <mario@mariovavti.com>2022-10-12 12:15:30 +0000
commita9a36894cb2637b546ed566ee06f20511cce031f (patch)
treed4db4326f9414e61771c5cfb3d23d1f47d1ec9a3 /include/zid.php
parentbc9778e02f6ba953c8437e8e9f4cc1f211a0232e (diff)
downloadvolse-hubzilla-a9a36894cb2637b546ed566ee06f20511cce031f.tar.gz
volse-hubzilla-a9a36894cb2637b546ed566ee06f20511cce031f.tar.bz2
volse-hubzilla-a9a36894cb2637b546ed566ee06f20511cce031f.zip
fix php warnings
Diffstat (limited to 'include/zid.php')
-rw-r--r--include/zid.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/zid.php b/include/zid.php
index 5710d9f3f..b38457d99 100644
--- a/include/zid.php
+++ b/include/zid.php
@@ -359,10 +359,12 @@ function owt_init($token) {
$_SESSION['authenticated'] = 1;
+ $delegate = $_REQUEST['delegate'] ?? '';
$delegate_success = false;
- if($_REQUEST['delegate']) {
+
+ if($delegate) {
$r = q("select * from channel left join xchan on channel_hash = xchan_hash where xchan_addr = '%s' limit 1",
- dbesc($_REQUEST['delegate'])
+ dbesc($delegate)
);
if ($r && intval($r[0]['channel_id'])) {
$allowed = perm_is_allowed($r[0]['channel_id'],$hubloc['xchan_hash'],'delegate');