aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Channel.php
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-09-08 22:33:39 -0700
committerredmatrix <mike@macgirvin.com>2016-09-08 22:33:39 -0700
commit2d83ea86dca57e6fde65ee93366974ed53d0784f (patch)
tree909d27dbae697ec0e97f980fe1b6812c7e8bb2be /Zotlabs/Module/Channel.php
parent956dab69b480fbc91a1735b66c0cf46a98d334ef (diff)
downloadvolse-hubzilla-2d83ea86dca57e6fde65ee93366974ed53d0784f.tar.gz
volse-hubzilla-2d83ea86dca57e6fde65ee93366974ed53d0784f.tar.bz2
volse-hubzilla-2d83ea86dca57e6fde65ee93366974ed53d0784f.zip
more get rid of illegal offset in include/conversation
Diffstat (limited to 'Zotlabs/Module/Channel.php')
-rw-r--r--Zotlabs/Module/Channel.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/Zotlabs/Module/Channel.php b/Zotlabs/Module/Channel.php
index be65354a9..795f0869a 100644
--- a/Zotlabs/Module/Channel.php
+++ b/Zotlabs/Module/Channel.php
@@ -120,8 +120,9 @@ class Channel extends \Zotlabs\Web\Controller {
'deny_gid' => $channel['channel_deny_gid']
);
}
- else
- $channel_acl = array();
+ else {
+ $channel_acl = [ 'allow_cid' => '', 'allow_gid' => '', 'deny_cid' => '', 'deny_gid' => '' ];
+ }
if($perms['post_wall']) {
@@ -133,7 +134,7 @@ class Channel extends \Zotlabs\Web\Controller {
'nickname' => \App::$profile['channel_address'],
'lockstate' => (((strlen(\App::$profile['channel_allow_cid'])) || (strlen(\App::$profile['channel_allow_gid'])) || (strlen(\App::$profile['channel_deny_cid'])) || (strlen(\App::$profile['channel_deny_gid']))) ? 'lock' : 'unlock'),
'acl' => (($is_owner) ? populate_acl($channel_acl,true, \Zotlabs\Lib\PermissionDescription::fromGlobalPermission('view_stream'), get_post_aclDialogDescription(), 'acl_dialog_post') : ''),
- 'permissions' => (($is_owner) ? $channel_acl : ''),
+ 'permissions' => $channel_acl,
'showacl' => (($is_owner) ? 'yes' : ''),
'bang' => '',
'visitor' => (($is_owner || $observer) ? true : false),