diff options
author | Mario <mario@mariovavti.com> | 2020-10-16 10:32:07 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-10-16 10:32:07 +0000 |
commit | b6ca9b6020e2eae0b5389148ce45bc2f7a81f999 (patch) | |
tree | 936fdce925cf9161218b24c11c0844b2c2a36ad8 /include/text.php | |
parent | 9c6446edbec6d8c4b275008de1b311d96adb329c (diff) | |
download | volse-hubzilla-b6ca9b6020e2eae0b5389148ce45bc2f7a81f999.tar.gz volse-hubzilla-b6ca9b6020e2eae0b5389148ce45bc2f7a81f999.tar.bz2 volse-hubzilla-b6ca9b6020e2eae0b5389148ce45bc2f7a81f999.zip |
make acl selector work correctly if we provide a cid in mod network
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php index af1473713..0a54ddd2f 100644 --- a/include/text.php +++ b/include/text.php @@ -3661,11 +3661,15 @@ function get_forum_channels($uid) { if(! $uid) return; - $xf = false; + if(App::$data['forum_channels']) + return App::$data['forum_channels']; + + $xf = ''; $x1 = q("select xchan from abconfig where chan = %d and cat = 'their_perms' and k = 'send_stream' and v = '0'", intval($uid) ); + if($x1) { $xc = ids_to_querystr($x1,'xchan',true); @@ -3702,6 +3706,8 @@ function get_forum_channels($uid) { } } + App::$data['forum_channels'] = $r; + return $r; } |