aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Webpages.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/Webpages.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/Webpages.php')
-rw-r--r--Zotlabs/Module/Webpages.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/Zotlabs/Module/Webpages.php b/Zotlabs/Module/Webpages.php
index acaca16c3..0da699c73 100644
--- a/Zotlabs/Module/Webpages.php
+++ b/Zotlabs/Module/Webpages.php
@@ -136,9 +136,11 @@ class Webpages 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' => '' ];
+ }
+
$is_owner = ($uid && $uid == $owner);
$o = profile_tabs($a, $is_owner, \App::$profile['channel_address']);
@@ -148,7 +150,7 @@ class Webpages extends \Zotlabs\Web\Controller {
'nickname' => \App::$profile['channel_address'],
'lockstate' => (($channel['channel_allow_cid'] || $channel['channel_allow_gid'] || $channel['channel_deny_cid'] || $channel['channel_deny_gid']) ? 'lock' : 'unlock'),
'acl' => (($is_owner) ? populate_acl($channel_acl,false, \Zotlabs\Lib\PermissionDescription::fromGlobalPermission('view_pages')) : ''),
- 'permissions' => (($is_owner) ? $channel_acl : ''),
+ 'permissions' => $channel_acl,
'showacl' => (($is_owner) ? true : false),
'visitor' => true,
'hide_location' => true,