aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-08-10 20:49:51 -0700
committerredmatrix <git@macgirvin.com>2016-08-10 20:50:32 -0700
commit45dc9959678786b05f206f7faee73f042631b2fe (patch)
tree45a8a28f40eebb836f6140bd18b88d12b8043328 /include/zot.php
parentd8240a40b7ca5c1f53909a54614a1a93c1062603 (diff)
downloadvolse-hubzilla-45dc9959678786b05f206f7faee73f042631b2fe.tar.gz
volse-hubzilla-45dc9959678786b05f206f7faee73f042631b2fe.tar.bz2
volse-hubzilla-45dc9959678786b05f206f7faee73f042631b2fe.zip
forum detection was off for forums with custom perms
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php
index 4e443652f..3a1986e3b 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -3784,9 +3784,11 @@ function zotinfo($arr) {
// check if it has characteristics of a public forum based on custom permissions.
$t = q("select * from abconfig where abconfig.cat = 'my_perms' and abconfig.chan = %d and abconfig.xchan = '%s' and abconfig.k in ('tag_deliver', 'send_stream') ",
intval($e['channel_id']),
- intval($e['channel_hash'])
+ dbesc($e['channel_hash'])
);
+
$ch = 0;
+
if($t) {
foreach($t as $tt) {
if($tt['k'] == 'tag_deliver' && $tt['v'] == 1)