aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-04-22 19:48:59 +0000
committerMario <mario@mariovavti.com>2021-04-22 19:48:59 +0000
commit80ec45e4f965cf2e1eeaf6e4eb54c0b70092f8d1 (patch)
treeacfbb44939311cb18da327e4f73412bd9e70cad5 /Zotlabs
parent9e9851681f1d9ddb9ffd7f9b8a33516c66f25757 (diff)
downloadvolse-hubzilla-80ec45e4f965cf2e1eeaf6e4eb54c0b70092f8d1.tar.gz
volse-hubzilla-80ec45e4f965cf2e1eeaf6e4eb54c0b70092f8d1.tar.bz2
volse-hubzilla-80ec45e4f965cf2e1eeaf6e4eb54c0b70092f8d1.zip
fix variable mixup
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Storage/BasicAuth.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/Zotlabs/Storage/BasicAuth.php b/Zotlabs/Storage/BasicAuth.php
index 3a48f5004..d23f3d848 100644
--- a/Zotlabs/Storage/BasicAuth.php
+++ b/Zotlabs/Storage/BasicAuth.php
@@ -125,10 +125,10 @@ class BasicAuth extends DAV\Auth\Backend\AbstractBasic {
* Array with the values for the authenticated channel.
* @return bool
*/
- protected function setAuthenticated($r) {
- $this->channel_name = $r['channel_address'];
- $this->channel_id = $r['channel_id'];
- $this->channel_hash = $this->observer = $r['channel_hash'];
+ protected function setAuthenticated($channel) {
+ $this->channel_name = $channel['channel_address'];
+ $this->channel_id = $channel['channel_id'];
+ $this->channel_hash = $this->observer = $channel['channel_hash'];
if ($this->observer) {
$r = q("select * from xchan where xchan_hash = '%s' limit 1",
@@ -139,8 +139,8 @@ class BasicAuth extends DAV\Auth\Backend\AbstractBasic {
}
}
- $_SESSION['uid'] = $r['channel_id'];
- $_SESSION['account_id'] = $r['channel_account_id'];
+ $_SESSION['uid'] = $channel['channel_id'];
+ $_SESSION['account_id'] = $channel['channel_account_id'];
$_SESSION['authenticated'] = true;
return true;
}