From 331622309f3f21ea08a1d767967c6143a16f49ef Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 1 Nov 2023 15:47:16 +0000 Subject: if channel is not defined we need to provide an empty array --- Zotlabs/Module/Chat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); -- cgit v1.2.3