aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Chat.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-11-01 15:47:16 +0000
committerMario <mario@mariovavti.com>2023-11-01 15:47:16 +0000
commit331622309f3f21ea08a1d767967c6143a16f49ef (patch)
treef2fd3b6df07148b4cfdd3de0bba8c03bfe546891 /Zotlabs/Module/Chat.php
parent4f334525c2fcb17bee095a02495a025c7bf1a501 (diff)
downloadvolse-hubzilla-331622309f3f21ea08a1d767967c6143a16f49ef.tar.gz
volse-hubzilla-331622309f3f21ea08a1d767967c6143a16f49ef.tar.bz2
volse-hubzilla-331622309f3f21ea08a1d767967c6143a16f49ef.zip
if channel is not defined we need to provide an empty array
Diffstat (limited to 'Zotlabs/Module/Chat.php')
-rw-r--r--Zotlabs/Module/Chat.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Chat.php b/Zotlabs/Module/Chat.php
index 2d36e022a..356071256 100644
--- a/Zotlabs/Module/Chat.php
+++ b/Zotlabs/Module/Chat.php
@@ -225,7 +225,7 @@ class Chat extends Controller {
$o = '';
- $acl = new AccessList($channel);
+ $acl = new AccessList($channel ?? []);
$channel_acl = $acl->get();
$lockstate = (($channel_acl['allow_cid'] || $channel_acl['allow_gid'] || $channel_acl['deny_cid'] || $channel_acl['deny_gid']) ? 'lock' : 'unlock');