From 80ec45e4f965cf2e1eeaf6e4eb54c0b70092f8d1 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 22 Apr 2021 19:48:59 +0000 Subject: fix variable mixup --- Zotlabs/Storage/BasicAuth.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Zotlabs/Storage') 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; } -- cgit v1.2.3